Skip to content

Qt 6

This is where all Qt 6 related questions belong

827 Topics 4.0k Posts

QtWS: Super Early Bird Tickets Available!

  • QtFuture not found

    Solved
    9
    0 Votes
    9 Posts
    876 Views
    Christian EhrlicherC

    @noone said in QtFuture not found:

    workaround ?

    #include <QFuture>

  • 0 Votes
    8 Posts
    2k 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
    655 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
    545 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:
    Screenshot from 2020-12-21 09-30-19.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.
  • Multi threaded TCP server GUI using Qt widgets application

    Unsolved
    16
    0 Votes
    16 Posts
    1k Views
    JonBJ

    @fari35
    You make a MainWindow object/instance by MainWindow instance or MainWindow *istance = new MainWindow.

    when I'm trying to create an object of MainWindow class in server.h class

    You absolutely do not want to create, or reference, any MainWindow class/object, or for that matter any UI object, in your server.h/.cpp files, which should solely work on QTcp... stuff! And nor should it attempt to #include "mainwindow.h"....

    You need to learn to keep your classes separate, each one only doing what it needs for its own specialized functionality.

    If, say, you do have a QMainWindow in an application using QTcpServer, mainwindow can know about server, but not the other way round. MainWindow can call methods in QTcpServer, but not the other way round. Or, they can use signals/slots if required to communicate.

  • QAxObject missing in v6?

    Moved Unsolved
    3
    0 Votes
    3 Posts
    435 Views
    D

    Thank you

  • QWidget or Pure QML in 2020 with Qt6 for new project

    Unsolved
    3
    0 Votes
    3 Posts
    434 Views
    B

    TreeView is now available although it's odd that it isn't included in Qt out of the box.

  • Converting OpenGL based map view to Qt 6

    Unsolved
    1
    0 Votes
    1 Posts
    261 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • Native menu on macOS 10.15 freezes Qt6

    Solved
    4
    0 Votes
    4 Posts
    422 Views
    A

    Looks like a bug. I have reported it at https://bugreports.qt.io/browse/QTBUG-89436

  • Qt6+CMake. QNetworkAuth not detected.

    Unsolved
    5
    0 Votes
    5 Posts
    2k Views
    SGaistS

    Looks like you may have an issue with your module build. I do not have Big Sure yet but I just tested on Catalina with a build of the latest dev checkout of the module and except an issue with the install folder quickly fixed I was able to build a small project based on your CMakeLists.txt file.

  • quick 3d shader and custom geometry

    Unsolved
    1
    0 Votes
    1 Posts
    206 Views
    No one has replied
  • How to create read-only bindable properties?

    Unsolved
    1
    0 Votes
    1 Posts
    345 Views
    No one has replied
  • making one CMake project buildable with either Qt5 or Qt6

    Unsolved
    5
    0 Votes
    5 Posts
    830 Views
    SGaistS

    Good point

    The doc update is in progress.

  • Qt6 Ubuntu PPA

    Unsolved
    2
    1 Votes
    2 Posts
    1k Views
    No one has replied
  • Qt 6 and Multithreading Caveats

    Moved Solved
    3
    0 Votes
    3 Posts
    366 Views
    F

    @JKSH Thank you for the quick answer!

  • Qt 6: Qt Image Formats - enable tiff compilation

    Unsolved
    8
    0 Votes
    8 Posts
    2k Views
    V

    @SGaist Just tried to build the same module on the Windows machine and I would say that Qt might have a bug inside.

    There is no Release configuration, I had to specify the RelWithDebInfo.

    conan install .. --build=missing --profile=C:\Qt\Tools\Conan\profiles\qt-6.0.0-msvc2019_64 -s build_type=RelWithDebInfo -g cmake_paths -g=cmake -g deploy -o qtimageformats:shared=True
  • no interest...don't want to see notices

    Unsolved
    2
    -1 Votes
    2 Posts
    260 Views
    Christian EhrlicherC

    Don't know why you post this here instead the correct forum but clicking on the 'Watching' button shouldn't be that hard...

  • Like to start with Qt6

    Moved Unsolved
    15
    0 Votes
    15 Posts
    1k Views
    S

    Thx.
    (I feel a bit stupid I didn't find that Qt list)