Skip to content

Qt 6

This is where all Qt 6 related questions belong

883 Topics 4.4k Posts
  • in qt6 QJSValue call not work properly

    Unsolved qjsvalue qml qt6
    1
    0 Votes
    1 Posts
    402 Views
    No one has replied
  • Installing Qt 6.0 on Ubuntu 20.04.1 LTS (QtCreator crashed)

    Solved
    10
    1 Votes
    10 Posts
    10k Views
    jsulmJ
    @AnneRanch #1 - this is normal on Linux and has to do with security (you usually really don't want downloaded files to be executable out of the box). A software developer should know how to make a file executable. #2 - QtCreator is installed by default when using the online installer provided by Qt Company #3 - It is an installer downloading most data from the Internet (including QtCreator). If you want an installer which includes everything then use offline installer (but keep in mind - it is big).
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • Heap Corruption Detected While Building Qt 6 with Visual Studio 2019

    Unsolved
    11
    0 Votes
    11 Posts
    2k Views
    K
    An error occurred.But other pc Start Over! Windows10 VisualStudio2019 x64 Qt6.0.0 (mega 2.62GB) https://mega.nz/file/tqQ0RJBT#HGZRV0B_k9Ekrf952vJ2-we6LK2nnfUCftSHmoO2syg command(admin) c:\qt6\src>cmake --install c:\qt6\src
  • Qt 6: Can't get GTK to work on Linux Mint

    Unsolved
    6
    0 Votes
    6 Posts
    2k Views
    DriftwoodD
    @JKSH - I found this: [image: fd73411f-1bcd-4865-90ec-ca6fc5ea7a38.png] But it isn't working. And I see no way to turn it on. Everything I create with Qt on Linux comes away with the standard "Qt theme". [image: fb3f1af3-df85-4fa5-9375-c2c8f4e62c58.png] On the left, we have Qt. On the right, Code::Blocks. I'm not making a comparison here, because I know Code::Blocks uses wxWidgets, and they adapt instantly to any theme. But I am trying to point out that I just created both of these on my Linux box. C::B holds true to my theme while Qt doesn't. I'm just trying to make Qt roll with my theme. And I know it can, because I use some Qt software on Linux that uses any theme I set. I just don't know how to get my Qt stuff to behave in kind. Any help in this matter would be greatly appreciated.
  • 0 Votes
    1 Posts
    372 Views
    No one has replied
  • Installation Qt6 on windows

    Unsolved installation
    7
    0 Votes
    7 Posts
    3k Views
    M
    @ronron Could you try the link www.qt.io/download-qt-installer for the online installer? That would automatically detect your operating system. In your case, Windows 10 platform. It could help to see that you are downloading the right version, 64-bits.
  • with Qt Multimedia Widgets removed, is there an alternative to play video in qt6?

    Solved
    4
    0 Votes
    4 Posts
    1k Views
    alomA
    Ah great to see that its planed for 6.2 Thanks guys
  • CMake error with msvc in CLion

    Solved
    11
    0 Votes
    11 Posts
    8k Views
    R
    @zhangyiant Thank you very much, I had such a problem too, it worked for me too.
  • Building Qt3D 6.0.0

    Unsolved qt3d qt6 build
    8
    2 Votes
    8 Posts
    2k Views
    J
    thanks for trying to shed some light on this. As I said, I have already installed the vulkan SDK (the "official" one from LunarG as I am trying to build for windows). I have even added the include directory directly in the *.pro file, and have observed that when opening the qt3d project with QtCreator, it can correctly resolve the vulkan libraries, so I think this is not the problem. I will try your suggestion of putting the vulkan headers directly in the qt directory and see if that gets me anywhere..
  • Cannot remove duplicated Android 6.0.0 Clang compilers kits auto-detected in Qt6

    Unsolved
    2
    0 Votes
    2 Posts
    513 Views
    kkoehneK
    Can you maybe attach C:\Qt\Tools\QtCreator\share\qtcreator\QtProject\qtcreator\profiles.xml? This is the place where all auto-detected kits are stored...
  • TIFF file problems in qt6

    Solved
    7
    0 Votes
    7 Posts
    2k Views
    leuatL
    FYI the problem was resolved after manually compiling up the imageformats package + adding it to the build dir. For future references: please make sure that if you try to load an image file that is currently not supported, then provide some sort of feedback to the user (developer)!
  • sending message to the client using Qt

    Unsolved
    16
    0 Votes
    16 Posts
    3k Views
    F
    @JonB I have done this but now When I emit a signal sendmessage() from mainwindow class (sendmessage() signal is working perfectly fine) to the slot of thread class so the thread class does not emit the gotnewmessage() signal when I want to send the data to mainwindow class that it needs to show in text box. Do you hav any idea why is that happening?
  • Serial port for Qt 6

    Solved serial port qt 6.0 qt serialport
    7
    0 Votes
    7 Posts
    8k Views
    P
    @SGaist Thank you very much, that saved me a lot of disk space!
  • Can't get the debugger to work on Qt6 + Apple M1 (arm).

    Unsolved
    3
    0 Votes
    3 Posts
    1k Views
    leuatL
    also, I should note that lldb works just fine, not showing source code was simply me running the program from an incorrect path. I guess lldb is the way to go until you guys release a fully operational kit for ARM...
  • Most Android examples do not compile under Qt 6

    Moved Unsolved
    1
    2 Votes
    1 Posts
    306 Views
    No one has replied
  • QtFuture not found

    Solved cmake qt6 qtfuture
    9
    0 Votes
    9 Posts
    1k Views
    Christian EhrlicherC
    @noone said in QtFuture not found: workaround ? #include <QFuture>
  • Find QListWidgetItem by custom widget object name

    Solved qlistwidgetitem
    8
    0 Votes
    8 Posts
    3k Views
    A
    @Christian-Ehrlicher True and this is what I did. It works: void MainWindow::removeItem(const QString &text) { for (int i = 0; i < ui->listWidget->count(); ++i) { auto item = ui->listWidget->item(i); auto itemWidget = dynamic_cast<CustomWidget*>(ui->listWidget->itemWidget(item)); if (itemWidget->getText() == text){ delete item; break; } } }
  • Calling the parent ui crashes the application

    Solved
    7
    0 Votes
    7 Posts
    1k Views
    A
    @SGaist Ya I was looking at this -> https://stackoverflow.com/questions/50083278/in-qt-how-to-remove-child-widget-from-parent-after-receiving-the-signal-generat. I think this is what I have to do.
  • GUI of Fortune server example with multithreading in Qt 6

    Unsolved
    7
    0 Votes
    7 Posts
    936 Views
    KH-219DesignK
    It is very hard for an individual (or a group) to debug your whole program (its design and its implementation) via a forum. This is not likely to succeed, in my opinion. To have success in a Q&A forum, the problem statement needs to be minimized. In your case, @fari35 , I would highly recommend that you start by only compiling and running the exact "untouched" sample code first: https://github.com/qt/qtbase/tree/fc9cda5f08ac848e88f63dd4a07c08b2fbc6bf17/examples/network/threadedfortuneserver Also compiling and run the exact unedited official client sample: https://github.com/qt/qtbase/tree/fc9cda5f08ac848e88f63dd4a07c08b2fbc6bf17/examples/network/fortuneclient Make sure all of that works first. I was able to compile and launch both of those with no issue, and this is what I see: [image: 58d7f66a-68fd-4f78-b620-e86c731e70b8.png] Once you do that, then start tracking your changes using git, and make one tiny change a time (in order to work slowly towards whatever your goal or assignment is). When you make one tiny change (as small as editing or adding just one line of code) and the change fails to do what you expect, then you can use the time-tested bug-reporting technique of: State what you did (the single tiny change). State what you expected. State what actually happened.