Skip to content

Qt Creator and other tools

Have a question about Qt Creator, our cross-platform IDE, or any of the other tools? Ask here!
7.8k Topics 36.3k Posts
Qt 6.11 is out! See what's new in the release blog
  • QT_RESIZE – Automatic Qt GUI Auto-Scaling Code Generator for QWidget Applications

    Unsolved
    1
    0 Votes
    1 Posts
    22 Views
    No one has replied
  • 0 Votes
    3 Posts
    75 Views
    cristian-adamC
    Thank you for posting this. Qt Creator 19.0.2 has a CMake find package dependency provider that checks to see if Qt packages are missing, and if so, then you can get an Issue with a link to automagically install the missing Qt component. But there is an issue when a Qt component has a dependency on other Qt components that might have missing dependencies. I have tried a Qt Widgets "Hello World" with missing system dev packages. With Qt Creator 19.0.2 and a Qt SDK Qt 6.11.1 I get this in General Messages: [cmake] Running /snap/bin/cmake -S /home/cristian/Projects/C++/HelloQtWidgets -B /home/cristian/Projects/C++/HelloQtWidgets/build/Desktop_Qt_6_11_1-Debug -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_COLOR_DIAGNOSTICS:BOOL=ON -DCMAKE_CXX_COMPILER:FILEPATH=/usr/lib/ccache/aarch64-linux-gnu-g++-13 -DCMAKE_C_COMPILER:FILEPATH=/usr/lib/ccache/aarch64-linux-gnu-gcc-13 -DCMAKE_GENERATOR:STRING=Ninja -DCMAKE_MAKE_PROGRAM:STRING=/usr/bin/ninja -DCMAKE_PREFIX_PATH:PATH=/home/cristian/Qt/6.11.1/gcc_arm64 -DCMAKE_PROJECT_INCLUDE_BEFORE:FILEPATH=/home/cristian/Projects/C++/HelloQtWidgets/build/Desktop_Qt_6_11_1-Debug/.qtcreator/cmake-helper/qtcreator-project.cmake -DQT_CREATOR_ENABLE_MAINTENANCE_TOOL_PROVIDER:BOOL=ON -DQT_CREATOR_ENABLE_PACKAGE_MANAGER_SETUP:BOOL=ON -DQT_ENABLE_QML_DEBUG:BOOL=ON -DQT_QMAKE_EXECUTABLE:FILEPATH=/home/cristian/Qt/6.11.1/gcc_arm64/bin/qmake in /home/cristian/Projects/C++/HelloQtWidgets/build/Desktop_Qt_6_11_1-Debug. [cmake] -- The CXX compiler identification is GNU 13.3.0 [cmake] -- Detecting CXX compiler ABI info [cmake] -- Detecting CXX compiler ABI info - done [cmake] -- Check for working CXX compiler: /usr/lib/ccache/aarch64-linux-gnu-g++-13 - skipped [cmake] -- Detecting CXX compile features [cmake] -- Detecting CXX compile features - done [cmake] -- Performing Test HAVE_STDATOMIC [cmake] -- Performing Test HAVE_STDATOMIC - Success [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_glx_LIBRARY OPENGL_INCLUDE_DIR) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_glx_LIBRARY OPENGL_INCLUDE_DIR) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR OpenGL) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR OpenGL) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR OpenGL) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR OpenGL) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR OpenGL) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR OpenGL) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR OpenGL) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR OpenGL) [cmake] CMake Warning at build/Desktop_Qt_6_11_1-Debug/.qtcreator/cmake-helper/maintenance_tool_provider.cmake:190 (message): [cmake] Qt packages are missing: 6.11.1, gcc_arm64, qt.qt6.6111.linux_gcc_arm64 [cmake] [cmake] If you are using the Qt Online Installer, check the Issues view in Qt [cmake] Creator for a link that installs the missing component. [cmake] Call Stack (most recent call first): [cmake] build/Desktop_Qt_6_11_1-Debug/.qtcreator/cmake-helper/maintenance_tool_provider.cmake:241 (qt_maintenance_tool_install) [cmake] CMakeLists.txt:4 (find_package) [cmake] [cmake] [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR OpenGL) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR OpenGL) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR OpenGL) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR OpenGL) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR OpenGL) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR OpenGL) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR OpenGL) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR OpenGL) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR OpenGL) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR OpenGL) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR OpenGL) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR OpenGL) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR OpenGL) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR OpenGL) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR OpenGL) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR OpenGL) [cmake] CMake Error at build/Desktop_Qt_6_11_1-Debug/.qtcreator/cmake-helper/maintenance_tool_provider.cmake:252 (find_package): [cmake] Found package configuration file: [cmake] [cmake] /home/cristian/Qt/6.11.1/gcc_arm64/lib/cmake/Qt6/Qt6Config.cmake [cmake] [cmake] but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT [cmake] FOUND. Reason given by package: [cmake] [cmake] Failed to find required Qt component "Widgets". [cmake] [cmake] Expected Config file at [cmake] "/home/cristian/Qt/6.11.1/gcc_arm64/lib/cmake/Qt6Widgets/Qt6WidgetsConfig.cmake" [cmake] exists [cmake] [cmake] [cmake] [cmake] Configuring with --debug-find-pkg=Qt6Widgets might reveal details why the [cmake] package was not found. [cmake] [cmake] Configuring with -DQT_DEBUG_FIND_PACKAGE=ON will print the values of some [cmake] of the path variables that find_package uses to try and find the package. [cmake] [cmake] Call Stack (most recent call first): [cmake] CMakeLists.txt:4 (find_package) [cmake] [cmake] [cmake] CMake Error at CMakeLists.txt:4 (find_package): [cmake] Could not find a configuration file for package "Qt6" that is compatible [cmake] with requested version "6.5". [cmake] [cmake] The following configuration files were considered but not accepted: [cmake] [cmake] /home/cristian/Qt/6.11.1/gcc_arm64/lib/cmake/Qt6/Qt6Config.cmake, version: unknown [cmake] The version found is not compatible with the version requested. [cmake] [cmake] [cmake] [cmake] -- Configuring incomplete, errors occurred! [cmake] [cmake] The command "/snap/bin/cmake -S /home/cristian/Projects/C++/HelloQtWidgets -B /home/cristian/Projects/C++/HelloQtWidgets/build/Desktop_Qt_6_11_1-Debug -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_COLOR_DIAGNOSTICS:BOOL=ON -DCMAKE_CXX_COMPILER:FILEPATH=/usr/lib/ccache/aarch64-linux-gnu-g++-13 -DCMAKE_C_COMPILER:FILEPATH=/usr/lib/ccache/aarch64-linux-gnu-gcc-13 -DCMAKE_GENERATOR:STRING=Ninja -DCMAKE_MAKE_PROGRAM:STRING=/usr/bin/ninja -DCMAKE_PREFIX_PATH:PATH=/home/cristian/Qt/6.11.1/gcc_arm64 -DCMAKE_PROJECT_INCLUDE_BEFORE:FILEPATH=/home/cristian/Projects/C++/HelloQtWidgets/build/Desktop_Qt_6_11_1-Debug/.qtcreator/cmake-helper/qtcreator-project.cmake -DQT_CREATOR_ENABLE_MAINTENANCE_TOOL_PROVIDER:BOOL=ON -DQT_CREATOR_ENABLE_PACKAGE_MANAGER_SETUP:BOOL=ON -DQT_ENABLE_QML_DEBUG:BOOL=ON -DQT_QMAKE_EXECUTABLE:FILEPATH=/home/cristian/Qt/6.11.1/gcc_arm64/bin/qmake" terminated with exit code 1. [cmake] [cmake] Elapsed time: 00:01. which gives a hint that something with OpenGL is missing. The dependency provider can be skipped by using -DQT_CREATOR_ENABLE_MAINTENANCE_TOOL_PROVIDER:BOOL=OFF, which could help in the case that this mechanism has bugs.
  • Warning from windeployqt

    Solved
    3
    0 Votes
    3 Posts
    124 Views
    PerdrixP
    @Chris-Kawa Thank you. This started happening after I rolled back from VS 18.6.2 to 18.5.3, I tried to follow your advice, but the VS Installer complained about missing "stuff". In the end I had to completely uninstall VS and re-install - most annoying! However the good news is that "normal service" has now been resumed!
  • New UI widgets elements inaccessible to code model

    Moved Solved
    25
    0 Votes
    25 Posts
    17k Views
    M
    I had a similar problem , It was fixed only by deleting build folder and rebuilding again
  • Qt Creator 20 RC released

    Unsolved
    1
    1 Votes
    1 Posts
    45 Views
    No one has replied
  • Remote device: "access via" doesn't work

    Unsolved
    1
    0 Votes
    1 Posts
    46 Views
    No one has replied
  • Qt Creator, VSCode or CLion?

    Unsolved
    6
    0 Votes
    6 Posts
    462 Views
    cristian-adamC
    @chenwj said in Qt Creator, VSCode or CLion?: Meanwhile, using AI features in Qt Creator requires a commercial license. With Qt Creator 20 you can use the ACP Client to connect to an ACP Agent like Claude Agent, Codex CLI, or OpenCode and do any AI work. The ACP Client plugin is part of the OpenSource Qt Creator.
  • How to encode Creator run settings in cmake preset?

    Unsolved
    5
    0 Votes
    5 Posts
    429 Views
    A
    Ha, I got Jira to work. I'll keep an eye on the issue, thanks a lot!
  • qwindowgeometry not working as command line option

    Unsolved
    6
    0 Votes
    6 Posts
    349 Views
    JonBJ
    @Robert-Hairgrove Fair enough. If it were me I would try a quick one line Qt GUI program of my own to see whether it respects --qwindowgeometry (that's one of the command line arguments any Qt program picks up), plus save/restore if you're wanting to check that, to see where you start from.
  • 0 Votes
    2 Posts
    217 Views
    SGaistS
    Hi, Which version of Qt Creator are you talking about ?
  • Qt Creator 19 - Android manifest file editor not working

    Unsolved
    2
    1 Votes
    2 Posts
    324 Views
    sbelaS
    I have the same problem but in windows 10... did you find any solution ?
  • Qt Creator - streamline find current qml file usage?

    Unsolved
    1
    0 Votes
    1 Posts
    121 Views
    No one has replied
  • Qt Creator 19.0.2 released

    Unsolved
    1
    1 Votes
    1 Posts
    128 Views
    No one has replied
  • Anyone had success with compose-based devcontainers in Qt Creator

    Unsolved devcontainer docker compose
    2
    0 Votes
    2 Posts
    417 Views
    K
    @galkinvv Thanks for your workaround for this. It got me up and running. According to this We should be able to use mount-libexec and libexec-mount-point for this. However, I tried them and they don't work. Have you found out anything more about this? Kevin
  • QML Preview not working

    Unsolved
    3
    0 Votes
    3 Posts
    768 Views
    E
    [Using QtCreator 18.0.2 and Qt 6.7.2] I had the same issue and I solved it by adding "NO_CACHEGEN" under "qt_add_qml_module" in my CMakeLists.txt file. As far as I understand, this problem occurs because the Preview uses the file under build folder but your changes occur on your projects file (which are not exactly the same file) and this tag disables caching and thus solves the problem. qt_add_qml_module(appXXX URI XXX VERSION 1.0 NO_CACHEGEN
  • Qt Creator 20 Beta released

    Unsolved
    1
    1 Votes
    1 Posts
    158 Views
    No one has replied
  • Getting the size of the MainWindow

    Unsolved
    9
    0 Votes
    9 Posts
    887 Views
    Axel SpoerlA
    @hskoglund Using a timer can be anything between a waste of time and vain hope. It depends on the operating system, how showMaximized(), showNormal() and the like are handled. QWidget::windowState() reflects what has been ordered to the window manager. The problem is that the widget's geometry can change twice. First time when showMaximized() has been processed and widget->windowState().testFlag(Qt::WindowMaximized) returns true. Second time, when the window manager has applied decorations (i.e. title bar and window handles). A good place to look for inspiration is tst_QWidget::showMaximized() and showFullScreen(). The QTRY_ macros generally process events until either the predicate is true or a timeout is hit. They're not available in applications, but you can write your own methods that work for your use case.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    6 Views
    No one has replied
  • QtCreator 19.0.1 Total crash when copying source code

    Unsolved
    6
    0 Votes
    6 Posts
    702 Views
    aha_1980A
    @Andy314 and @Udo-Alt I tried to reproduce the problem, but could not reproduce this bug. Can one of you give exact instructions with sample code to reproduce this problem? Then it would be possible to create a fix. Regards
  • Display an image in a c++ program

    Solved
    12
    0 Votes
    12 Posts
    1k Views
    jsulmJ
    @JYG61 See "Topics Tools" at the top