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
  • Cannot link QtCreator to existing Qt installation.

    Unsolved
    1
    0 Votes
    1 Posts
    17 Views
    No one has replied
  • QtCreator freezes von Ubuntu 26.04 after canceling the build

    Unsolved
    8
    0 Votes
    8 Posts
    3k Views
    J
    @berliner : It was fixed in https://codereview.qt-project.org/c/qt-creator/qt-creator/+/708134 commit. However, it went to Creator 19.0 so please try this version to verify whether it fixes your issue.
  • QtCreator 20.0.0 cannot display most object member values when compiled by clang 21.1.4

    Unsolved
    4
    0 Votes
    4 Posts
    113 Views
    T
    But with QtCreator 20.0.0 there is no difference.
  • Creator error but command line works.

    Unsolved
    2
    0 Votes
    2 Posts
    72 Views
    SGaistS
    Hi and welcome to devnet, Did you already your kit configuration in Qt Creator ?
  • Creator / cmake: Only build the executable I want to start?

    Solved
    3
    0 Votes
    3 Posts
    282 Views
    A
    @cristian-adam Nice, thanks!
  • function is not clickable in Qt Creator

    Moved Unsolved
    2
    0 Votes
    2 Posts
    273 Views
    SGaistS
    Hi, You should add: Which version of Qt Creator Which version of Qt On which OS Try to record a small video showing the issue
  • Examples don't show up

    Solved
    16
    0 Votes
    16 Posts
    3k Views
    G
    Hi, I've solved this problem. In README.md, I found an extra step to install the documentation. I should've run these commands after installing Qt: cmake --build . --target docs sudo cmake --build . --target install_docs But, since I had deleted my qt-build and /opt/Qt6/examples, I did these following to make the examples, along with the documentation, accessible from within Qt Creator: mkdir qt-build && cd qt-build ~/qt-sources/configure -prefix /opt/Qt6 -skip qtwebengine -nomake tests -make examples -- -DQT_BUILD_EXAMPLES_BY_ DEFAULT=OFF -DQT_INSTALL_EXAMPLES_SOURCES=ON cmake --build . --parallel --target docs sudo cmake --install . --component examples_sources sudo cmake --build . --parallel --target install_docs After that, the examples and documentation are accessible from Qt Creator: [image: edb125fb-5997-469c-bdb2-f50239796b90.png] Screenshot of Examples [image: 5a9e5824-ab94-48fc-8351-7bb5b5ba89d8.png] Screenshot of Help
  • QtCreator 20 defaulting to Unix makefilesfor cmake on Ubuntu

    Solved
    4
    1 Votes
    4 Posts
    719 Views
    cristian-adamC
    And if you have Ninja installed via Qt SDK, you should have in your QtCreator.ini something like: [CMakeSpecificSettings] NinjaPath=/Users/cristian/Qt/Tools/Ninja//ninja which should get CMAKE_MAKE_PROGRAM set to this value.
  • GDB Not Responding

    Moved Unsolved
    2
    0 Votes
    2 Posts
    423 Views
    JonBJ
    @DungeonLords The topic you reference was apparently resolved/worked around by disabling Run in terminal but not yours, so I presume it's a different cause. I don't know whether other people will be able to help you on this. If you want a diagnose where the problem lies I would: Run gdb on your QML application directly from the command line. Does that work fine or have the same issue? Then you know whether it is to do with Creator or not. Write the minimal "Hello World" app in QML and debug that from Creator. Fine or goes wrong? Then you know whether it is due to something specific in your code.
  • Visual Studio 2026 with Qt Visual Studio Tools 3.5.0 extension very very slow

    Moved Unsolved
    6
    0 Votes
    6 Posts
    3k Views
    SGaistS
    @qterrrrrrr said in Visual Studio 2026 with Qt Visual Studio Tools 3.5.0 extension very very slow: i got the same issue it stack at QtUpdateCompilerOptions for a long times everytime ,[image: 5e87d5f7-75f0-435b-80e1-b42ae4f973f6.png] Hi and welcome to devnet, Do you have a small project that reliably triggers this ? If so, you should contribute to ticket already opened on this subject.
  • Qt Creator is always looking for Ollama since the latest update

    Unsolved
    13
    0 Votes
    13 Posts
    5k Views
    R
    I found out that if I create a new project without any translation files, it opens the project normally. Then if I add a TRANSLATIONS section to the .pro file, I get the error described above. So it might have something to do with Qt Linguist? But I can use different AI models in Lnguist, not necessarily ollama?
  • Creator: clangd uses wrong C++ version - how to fix?

    Unsolved
    2
    0 Votes
    2 Posts
    1k Views
    cristian-adamC
    Go to Tools > Debug Qt Creator > Inspect C++ Code Model ... there you should get access to some information that the code model uses. Otherwise you would have to enable some logging to get more info.
  • How to Enable Python Type Hints in Qt Creator?

    Unsolved
    19
    0 Votes
    19 Posts
    8k Views
    cristian-adamC
    @cristian-adam said in How to Enable Python Type Hints in Qt Creator?: I've opened up QTCREATORBUG-34195: Python debugging not having pretty printers for Pyside6 Qt types. The bug report has been closed, and this is how Qt Creator master (21) looks like: [image: e72021e9-d1f7-4576-877c-ebb5aa2a6ac4.png]
  • Qt Creator build error

    Unsolved
    3
    0 Votes
    3 Posts
    2k Views
    SGaistS
    Hi and welcome to devnet, Do you have an anti-virus running ? They usually quarantine any application created through a build process.
  • Qt Creator 20 and local AI

    1
    3 Votes
    1 Posts
    690 Views
    No one has replied
  • 1 Votes
    1 Posts
    721 Views
    No one has replied
  • Qt Creator 20 released

    Unsolved
    2
    2 Votes
    2 Posts
    1k Views
    hskoglundH
    Thank you, looks good! A note for those (like me) who builds Qt Creator Plugins: Installing vanilla Qt 6.11.1 is not enough, you also need to install Qt TaskTree: [image: d9e1531e-09f0-426b-a1bd-6fe56c1f08c6.png] And you need to add this to the Plugin's CMakeLists.txt: set(CMAKE_CXX_STANDARD 20) (Otherwise I think CMake defaults to C++17 which is not good enough for Qt TaskTree).
  • Incompatibility between Enums generated by Qt creator.

    Solved
    3
    0 Votes
    3 Posts
    2k Views
    L
    It was a issue with the Qt Creator version. Using the same Qt Creator Version the editor does not generate different enums.
  • Not all Qt Creator versions are available for download at the archives

    Solved
    4
    0 Votes
    4 Posts
    2k Views
    cristian-adamC
    Then go to https://download.qt.io/official_releases/qtcreator/ and respectively https://download.qt.io/official_releases/qtcreator/11.0/11.0.1/
  • 0 Votes
    3 Posts
    2k 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.