Skip to content

Qt 6

This is where all Qt 6 related questions belong

868 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
  • Qt5 is better than Qt6

    Unsolved
    16
    5 Votes
    16 Posts
    694 Views
    Pl45m4P
    @JonB The same kind of people blames their car when they steer down the stairs of an Underground station or drive into the next lake because their GPS told them to "turn right"... ;-) @ WhateverAccYouAreGoingToCreate: It is how it works and what it always have been like... If your Qt5 app had worked like you told, it's not because of Qt did something different in Qt6 compared to Qt5, but you did when building your app... We have told you that multiple times, but you don't listen :)
  • 1 Votes
    12 Posts
    48k 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...
  • Qt 6.8.3 or higher Font displays incorrectly on systems with Japanese language.

    Unsolved
    2
    0 Votes
    2 Posts
    67 Views
    SGaistS
    Hi, My eye sight being a bit bad. Can you give more details about the font issue you are seeing ? Also, on which OS does it happen ?
  • Qt Applications Font doesn't look right.

    Unsolved
    4
    0 Votes
    4 Posts
    294 Views
    C
    Do you have any windows modifications installed? seems to be the same issue as in here I don't use winaero tweaker and I have the problem, so I'm trying to figure out how to reproduce it
  • Install Qt6StateMachine with aqt install-qt

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

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

    Unsolved
    18
    1 Votes
    18 Posts
    1k 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
    217 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
    3k 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
    505 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
    154 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
    220 Views
    T
    Thanks a lot!
  • There has a the difference about QTransform between qt5 and qt6, How can I do?

    Unsolved
    6
    0 Votes
    6 Posts
    377 Views
    Christian EhrlicherC
    @JohanSolo said in There has a the difference about QTransform between qt5 and qt6, How can I do?: if and only if its determinant is different from zero, Yeah, forgot the not, thx & fixed
  • Example code for applying for Android permissions in QT 6.5.3.

    Unsolved qt6 android
    6
    0 Votes
    6 Posts
    791 Views
    F
    @Gracy The question is pretty old, but i know the answer... First, make sure, the permissions are added. Maybe you are missing the following: https://doc.qt.io/qtcreator/creator-deploying-android.html#editing-manifest-files To check and request permissions you can do: QFuture permission_request = QtAndroidPrivate::requestPermission("android.permission.WRITE_EXTERNAL_STORAGE"); switch(permission_request.result()) { case QtAndroidPrivate::Undetermined: qWarning() << "Permission for writing to the storage undetermined!"; break; case QtAndroidPrivate::Authorized: qDebug() << "Permission for writing to the storage authorized"; break; case QtAndroidPrivate::Denied: qWarning() << "Permission for writing to the storage denied!"; break; }
  • 0 Votes
    4 Posts
    3k Views
    N
    Could not find a package configuration file provided by "Qt6HostInfo" with any of the following names:
  • Build error on qt 6.8

    Solved
    5
    0 Votes
    5 Posts
    474 Views
    Q
    @Axel-Spoerl said in Build error on qt 6.8: gcc --version it say: gcc (GCC) 13.2.1 20240316 (Red Hat 13.2.1-7) Copyright (C) 2023 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  • Qt6 + Gstreamer + CMake

    Solved
    3
    0 Votes
    3 Posts
    396 Views
    A
    Oops! That was right under my nose, but I still managed to miss it. Many thanks, good sir!