Skip to content

Qt 6

This is where all Qt 6 related questions belong

873 Topics 4.3k Posts
  • Read before posting in this category!

    Pinned Locked
    3
    6 Votes
    3 Posts
    3k Views
    SGaistS
    And now (incomplete at the time of this post): https://wiki.qt.io/New_Features_in_Qt_6.2
  • Apple Liquid Glass on Qt

    Unsolved
    5
    0 Votes
    5 Posts
    259 Views
    JKSHJ
    @raulgd It helps to identify the purpose and composition of each channel. This forum is a community forum for Qt users to help each other to use the existing Qt API. Questions are mainly answered by community volunteers in their spare time. The Development mailing list (https://lists.qt-project.org/listinfo/development) is where stakeholders discuss the details of implementing new features in the Qt framework itself (such as Apple Liquid Glass styling). The Support Center (https://account.qt.io/s/support-center) is where commercial license holders can talk to support engineers whose job is to provide technical support for Qt Company customers. getting replies from someone from Qt @jsulm is a community member who is unaffiliated with the Qt Company. Anyway, as for your original question, please see https://forum.qt.io/topic/162394/qt-and-apple-glass-ui-in-macos-26/9 (Tor Arne is an engineer from the Qt Company)
  • 50 signal/slots

    Solved
    6
    0 Votes
    6 Posts
    111 Views
    JonBJ
    @servant-0 said in 50 signal/slots: I setup the 50 signals to emit their object name as a QString and call findChild on it to update the text on a label in the slot All as @J.Hilk has written about findChild(). Also it depends hugely on whether your target widget is "close" in the hierarchy to the widget you call findChild() on. If that is "high up" it has a lot of searching to do if there are a lot of descendent widgets. It sounds like you have a backend data layer which emits a signal when it changes and passes the value of what will be used as a widget's objectName() to indicate which widget to update? If so that is not ideal for decoupling data from UI. You might like to look at QDataWidgetMapper for a means of tying widgets to data values (works in both directions, though you may only need data->widget direction). For that you would store your data values in anything derived from a QAbstractItemModel and any time that data changes internally a signal is sent and the corresponding widget is updated (without lookup).
  • Qt5 is better than Qt6

    Unsolved
    18
    5 Votes
    18 Posts
    2k Views
    servant 0S
    Wow! Someone was angry and spent a lot of time on this post, including making alt accounts.
  • Missing DLLs in QT6....I think

    Unsolved
    5
    0 Votes
    5 Posts
    174 Views
    Christian EhrlicherC
    These dlls are installed in the same directory as the release dlls - <QTDIR>\version<compiler_type>\bin
  • Stack widget setCurrentWidget does not change the widget

    Unsolved
    3
    0 Votes
    3 Posts
    160 Views
    J
    Hello, before using ->setCurrentWidget(), you can check if that widget is already contained in that stack widget or not. you can m_centralStackedWidget->indexOf(m_windowSplitter) to find out if the widget is present in the stackwidget or not, it will return "-1" if the widget is not present in stackwidget
  • How to use QProcess with QtConcurrent?

    Unsolved
    15
    0 Votes
    15 Posts
    1k Views
    JonBJ
    @Teg-Miles It's not so much that QProcess "wasn't created for threading", it's that there is no need (and only added complexity) to use threads to run the the processes since another process is asynchronous anyway. It won't even use any calling threads you might create anyway, as soon as a sub-process runs it is in its own thread/process anyway, not the one which ran it. No, ps will not be faster than, say, reading from /proc yourself as that is what it will be doing anyway --- it's not magic, it has to be written in C/C++ itself anyway. OTOH there is an overhead inherent in creating and running another process, plus whatever IPC or I/O you do to get its data back. That will be true on Windows too. I assume Get-Process is a PowerShell command a bit like ps? So again that is just one way you could call it. There will also be Windows own system calls to get information about other processes, and calling those yourself from C/C++ will get better performance. But finding out how to do this in Linux/Windows/MacOS may be something you don't want to do and you find running some command on each OS and reading its output is what you prefer for a simple, non-commercial program.
  • Qt 6.8.3 or higher Font displays incorrectly on systems with Japanese language.

    Unsolved
    4
    0 Votes
    4 Posts
    359 Views
    SGaistS
    You can use qDebug to print your application's font information.
  • Qt Applications Font doesn't look right.

    Unsolved
    5
    0 Votes
    5 Posts
    614 Views
    T
    @Cruzmatt22 I do have WinAero Tweaker installed but System Font is set to default. Also the command line parameter did work. I was hoping there was some sort global fix.
  • 1 Votes
    12 Posts
    50k Views
    Christian EhrlicherC
    @DevWinDemon said in The code execution cannot proceed because Qt6Core.dll was not found. Reinstalling the program may fix this problem.: I work 2 years like this on qt 5.15.16 Nobody hinders you to make it work the same with Qt6 - simply put it in the PATH env var as you did for Qt5. Please stop insulting people for things neither we nor Qt can do against - that's how a library search path on windows works (and also on linux there is a similar thing). So learn on how library search is working on your platform. But maybe your russia os has a better solution for this...
  • Install Qt6StateMachine with aqt install-qt

    Unsolved
    3
    0 Votes
    3 Posts
    1k Views
    S
    Thanks @Paul-Colby This was helpful.
  • Qt6 + GStreamer

    Unsolved
    6
    0 Votes
    6 Posts
    687 Views
    SGaistS
    Are you setting the CMAKE_PREFIX_PATH variable to point to the Qt version you want to use ?
  • 0 Votes
    10 Posts
    2k Views
    _
    @SGaist sure will do that ...
  • How to create exe file on qt6

    Unsolved
    18
    1 Votes
    18 Posts
    2k Views
    X
    I tried, I ran in release mode and used windeployqt and had to copy additional lib files but it couldn't run and there was no notification, but if I run the program in debug mode, after the exe file is created, I can successfully run that file without having to run the windeployqt command or copy any additional lib files
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • error when building android on qt6.8.3 clang arm64-v8a

    Unsolved
    4
    0 Votes
    4 Posts
    457 Views
    jsulmJ
    @Xhuong It looks like jpeg lib is not there or incompatible (wrong CPU architecture?).
  • Qt 6 undefined reference to `qMain(int, char**)'

    Unsolved
    15
    1 Votes
    15 Posts
    4k Views
    QtFriend2024Q
    ** MY SOLUTION ** I had this same issue with my QT Widgets project using Windows 11 host machine. I had upgraded my QT to 6.8.3 and this Error: undefined reference to `qMain(int, char)'** even though this wasn't the actual issue . Following my steps below, Qt Creator was able to highlight the actual issues for me to resolve and successfully build my project. Steps to Resolve the Issue: Create a new, most simple Qt Widgets project. Use the default mainwindow.h, mainwindow.cpp and mainwindow.ui with the project kit that you want to use Run CMake Build the project. It should build successfully Open the CMakeLists.txt file Utilize this new, simple CMakeLists.txt file as a template for your ORIGINAL project. Modify the "template" CMakeLists.txt file to include your original project's resource file names where you see main.cpp, mainwindow.h, mainwindow.cpp, etc. Modify the "template" CMakeLists.txt file to include the QT packages you are using (Core, Gui, or etc.) Modify the "template" CMakeLists.txt file to include the target link libraries (refer to packages in previous step) Build your original project It should give you more specific, helpful errors to resolve (if there are any). For me, one of my *.cpp files #include Qt Serial Bus but I forgot to add it to CMakeLists.txt Resolve errors Rebuild. It built successfully for me.
  • Qt CAN Bus (vectorcan) with Vector VN1640A only receives data when CANoe is running

    Unsolved
    7
    1 Votes
    7 Posts
    952 Views
    aha_1980A
    Hi @eric_1994, I just stumbled over https://bugreports.qt.io/browse/QTBUG-123012 and wonder if that is related to your problem? Can you update to Qt 6.9?
  • setSpan() functionality not working in qt 6 and cpp 17

    Unsolved
    2
    0 Votes
    2 Posts
    302 Views
    Christian EhrlicherC
    Please provide a minimal, compilable example of your problem.
  • How to determine system encoding in Qt 6?

    Solved
    3
    0 Votes
    3 Posts
    413 Views
    T
    Thanks a lot!