Qt Creator 9 released

We are happy to announce the release of Qt Creator 9!

First of all you can read the change log directly in Qt Creator now, under Help > Change Log on Windows and Linux, and under Qt Creator > Change Log on macOS!

Experimental Squish Support

The new plugin in Qt Creator 9 adds support for:

  • Opening existing Squish test suites
  • Creating new test suites and test cases
  • Recording test cases (limited)
  • Using Squish Runner and Server to run test suites or cases and view the results in the Squish output
  • Setting breakpoints before running tests to stop at certain locations and inspect the local variables, similarly to when debugging a test

Read more in the documentation, and enable the new experimental plugin in Help > About Plugins > Utilities > Squish (or Qt Creator > About Plugins > Utilities > Squish on macOS).

Help

We added support for dark themes to the Qt and Qt Creator documentation. When you switch Qt Creator to a dark theme, the Qt and Qt Creator documentation is also shown with a dark style. Since we cannot make any assumptions about other documentation that you might have registered, we do not change the appearance of these, though.

When you request context help for Qt API, we now try to show the documentation that best fits the Qt version that you specified in the active kit for the project, instead of just using the highest registered Qt version's documentation. If your project uses Qt 5, you will be shown the Qt 5 documentation, and correspondingly for Qt 6.

Editing

We added an option for visualizing the indentation in the document. Each indentation level is marked with a vertical line.

Visualization of Indentation

You can now also change the line spacing. Both options can be configured in the preferences, Text Editor > Display and Text Editor > Fonts & Colors respectively.

We also fixed the perfomance when selecting very large sections of a document, saving of files with non-breaking spaces, and several other issues.

C++

You can now use a single Clangd instance for a whole session, instead of one instance per project. This can be useful if you open multiple closely related projects into the same session. A new option in Clangd 15 allows you to set the priority of the background threads that Clangd uses for indexing and other work. We also reduced the default for the reported number of completion items to Clangd's default (100). Configure this in the preferences under C++ > Clangd.

The C++ code style settings are now directly editable in the preferences dialog, without an additional dialog. And the ClangFormat settings (if you enabled that plugin) are now also available there, making them better accessible.

As always, there would be much more to say, and I recommend looking for more details in the change log.

QML

We fixed the remaining cases in which Qt Creator could open QML files from the build directory instead of the source directory when following symbols. Also, if you use the reformatting feature you will no longer lose breakpoints and will keep your cursor position also on undo.

CMake

We added support for configure and build presets, including conditions and toolchain files. In other terms, that is version 3 of CMake presets. Note that Qt Creator doesn't do any version checks; it simply ignores any information in CMakePresets.json and CMakeUserPresets.json that it doesn't know how to handle.

You can also change the environment that is used for running CMake at configure time in Projects mode now.

Docker

Our work of supporting remote paths at various places continues throughout our code base. For example we added a file browser for remote files and directories, such as the build directory. Auto-detection on the remote was greatly improved, as was the device wizard.

Aside from Docker devices, it is now also possible to set remote Linux devices as the build device for a kit.

Get Qt Creator 9

The opensource version is available on the Qt download page under "Qt Creator", and you find commercially licensed packages on the Qt Account Portal. Qt Creator 9 is also available as an update in the online installer. Please post issues in our bug tracker. You can also find us on IRC on #qt-creator on irc.libera.chat, and on the Qt Creator mailing list.

You can read the Qt Creator Manual in Qt Creator in the Help mode or access it online in the Qt documentation portal.


Blog Topics:

Comments

Commenting for this post has ended.

J
John
1 point
29 months ago

Font for displaying menu (File Edit View Debug ... etc) are giant sized huge. About 4 times larger than normal sized. (On 3456x2160 15" display 250% windows scaling (default for system)).

C
Cristian Adam
1 point
29 months ago

This is tracked by https://bugreports.qt.io/browse/QTCREATORBUG-28499. The bug report has a workaround for the issue.

Richard Thompson
3 points
29 months ago

I am becoming increasingly concerned about the apparent lack of testing of Qt 6 and Qt Creator on common systems recently.

Qt Creator has suffered what feels like a lot of issues on Hi-DPI and Mixed-DPI systems over the last few months. This one is so blatant that the only reasonable assumption is that nobody even launched it.

A
Alex G
0 points
29 months ago

Considering this big bug, will 9.0.1 be released soon?

C
Cristian Adam
1 point
29 months ago

Yes. According to https://wiki.qt.io/Qt_Creator_Releases the release will be (as tentative date): Qt Creator 9.0.1 : wk50 (~Dec 13 2022)

Yagamy Light
0 points
29 months ago

Is it Meson-ready yet?

E
Eike Ziller
1 point
29 months ago

Depends on what you mean with that. There is experimental Meson support since a while (https://doc.qt.io/qtcreator/creator-project-meson.html, plugin needs to be enabled).

K
Konstantin
0 points
29 months ago

Linux remote build is super useful. Thank you!I did not succed with Linux remote run. It would be great to have manual.

Seweryn Kamiński
0 points
29 months ago

The release for Qt5 is missing!

C
Cristian Adam
0 points
29 months ago

Only Qt6 is supported for building Qt Creator. This has been the case starting with Qt Creator 8.

Seweryn Kamiński
0 points
29 months ago

OK, thx. But why there is not older version for Qt5 like Qt Creator 7 any more?

C
Cristian Adam
0 points
29 months ago

Apparently not. https://download.qt.io/snapshots/qtcreator_qt5/ was the location, as seen at https://web.archive.org/web/20220521223650/https://download.qt.io/snapshots/qtcreator_qt5/.

The last Qt5 build of Qt Creator is version 5 (as far as I know). You can get it from https://download.qt.io/official_releases/qtcreator/5.0/5.0.3/

Seweryn Kamiński
-1 points
29 months ago

Qt Creator 7.0.3 Bazujący na Qt 5.15.2 (GCC 7.3.1 20180303 (Red Hat 7.3.1-5), 64 bitowy)

Владыка Владыков
0 points
29 months ago

Doesn't work on windows 8.1. QtCreator was launched on some set of computers. It gives errors, either there are not enough libraries in the Qt folder, or it cannot find the SystemParametersInfoForDpi function in Qt6Gui.dll.

C
Cristian Adam
0 points
29 months ago

Qt Creator 9 is built with Qt 6 and will run on supported Windows 10 versions (version 1809 or newer). Windows 8.1 support will end on 10 January 2023.

Note that the SystemParametersInfoForDpi was mentioned in October 2016 at High DPI Scaling Improvements for Desktop Applications and “Mixed Mode” DPI Scaling in the Windows 10 Anniversary Update (1607).

Felix
0 points
29 months ago

I am looking for functionality that Gitlens provides. Showing the author and date-time each line of code was added. Does anybody know if this functionality is available in QtCreator , perhaps through plugins? Could anyone help me find this functionality?

Steven Blackburn
0 points
29 months ago

Look for blame or annotate under the version control "tools" menu.

M
Maxim B.
0 points
29 months ago

Would be good to see better Java support in QtCreator (currently only basic syntax highlighting available and weird error messages interpretation at issues view). There is an theoretical possibility to setup Java LS (https://doc.qt.io/qtcreator/creator-language-servers.html) but i don't managed to make it work and i haven't hear that someone else make it work.

C
Cristian Adam
0 points
29 months ago

Please open a bug report / suggestion with more details. From what I've understand it should work in an Android context.

Jared M Johnson
0 points
29 months ago

Installing the ClangFormat plugin kills qtcreator, even if it's disable. It's unusable slow.

I turned this on because Beautifier is now mangling text when it runs clang-format.

Not having a working or usable version of clang-format is really annoying

C
Christian Kandeler
0 points
28 months ago

The ClangFormat plugin doesn't do anything when it's disabled.

Jared M Johnson
0 points
28 months ago

This doesn't seem to be true. If I load the clangformat plugin and restart qtcreator my interface has frustrating latency whether or not it is disable.

To be honest, I don't think 'disable' works, possibly without a hard restart. But the only foolproof way I can keep my interface snappy is to not load the clangformat plugin...