October 29, 2021 by Cristian Adam | Comments
Qt Creator 6 comes with bug fixes and new features that affect CMake projects.
With Qt Creator 6, in order to have the header files displayed in the project tree, they need to be added to the project sources via:
add_library(my_lib [STATIC|SHARED|MODULE] [source.cpp source.h ...])
add_executable(my_exe [source.cpp source.h])
target_sources(my_target <INTERFACE|PUBLIC|PRIVATE> [source.cpp source.h])
This means that the header files will get the same treatment as the source files.
Qt Creator 6 will no longer scan all the files in the project source directory for header files and try to match the source files with the corresponding header files.
When the source matching would fail, then the headers would be grouped in the <Headers>
project node. Qt Creator 6 will always open the correct header file, even if multiple headers have the same name.
Qt Creator 6 comes with optimizations for the project loading. See below the (hot) loading of Qt Creator 6 sources in Qt Creator 5 and Qt Creator 6.
The <File System>
project node is displayed only when Qt Creator cannot load a CMake project. This is done to avoid the file system scanning and have faster project loading times.
Note that you can use the “File System” widget pane for the same operation.
Previously only errors were displayed in the issues pane. Now also warnings are displayed.
If the project fails to load or the previous working configuration has been restored, Qt Creator 6 will display a warning icon in the project tree.
The issues pane will contain the information that otherwise would be present only in the Project Mode.
With Qt Creator 6, you can search with Ctrl + F in the CMake output of the Projects mode.
Download the latest release here: www.qt.io/download.
Qt 6.8 release focuses on technology trends like spatial computing & XR, complex data visualization in 2D & 3D, and ARM-based development for desktop.
Check out all our open positions here and follow us on Instagram to see what it's like to be #QtPeople.
Mar 20, 2025
Here are the new CMake changes in Qt Creator 16: More feature parity with..
Mar 13, 2025
We are happy to announce the release of Qt Creator 16! Performance..
Feb 27, 2025
We are happy to announce the release of Qt Creator 16 RC! Please check our..