Qt Creator 16 released
Qt Creator 16发布
March 13, 2025 by Eike Ziller | Comments
2025年3月13日作者:Eike Ziller
We are happy to announce the release of Qt Creator 16!
我们很高兴地宣布Qt Creator 16的发布!
Performance Improvements
性能改进
Qt Creator 16 comes with many performance improvements, especially for the startup performance.
Qt Creator 16带来了许多性能改进,特别是在启动性能方面。
We improved the performance of the detection of the Qt ABI. Since Qt 6 we can retrieve the ABI from a configuration file instead of guessing it from the content of the libraries, which is now done asynchronously while collecting other information about the registered Qt versions.
我们提高了Qt ABI检测的性能。自Qt 6以来,我们可以从配置文件中检索ABI,而不是从库的内容中猜测它,现在这是异步完成的,同时收集有关注册Qt版本的其他信息。
On Windows hosts we reduced the time it takes for the first editor to open, by asynchronously loading the font cache already during startup.
在Windows主机上,我们通过在启动过程中异步加载字体缓存,减少了第一个编辑器打开所需的时间。
For Python kits we already cached the information if `pip` and `venv` are usable with the corresponding Python installation. Now we asynchronously retrieve this ahead of time, so it is already available when we need it.
对于Python工具包,我们已经缓存了“pip”和“venv”是否可用于相应的Python安装的信息。现在我们提前异步检索它,所以当我们需要它时,它已经可用了。
Editing
编辑
We removed the confusing "Mixed" indentation setting for the text and code editors and replaced it with a new option to auto-detect the indentation from the file content, which also is the new default behavior. The detected settings are shown in a new button in the editor toolbar, where you can also temporarily change them for the open document if the auto-detection went wrong. (Documentation)
我们删除了文本和代码编辑器中令人困惑的“混合”缩进设置,并将其替换为一个新的选项,用于自动检测文件内容中的缩进,这也是新的默认行为。检测到的设置显示在编辑器工具栏中的新按钮中,如果自动检测出错,还可以在其中临时更改打开文档的设置。(文档)

For QML files we now add the value of the QML_IMPORT_PATH CMake variable to the imports passed to qmlls. Together with other fixes, this should make qmlls a viable option for most projects. However, qmlls still has known limitations, like that it does not work with the legacy imperative type registration. See also: Configure QML Language Server, Defining QML Types from C++, Modern QML modules, Port QML modules to CMake.
对于QML文件,我们现在将QML_IMPORT_PATH CMake变量的值添加到传递给qmls的导入中。与其他修复一起,这应该使qmls成为大多数项目的可行选择。然而,qmls仍然存在已知的局限性,比如它不适用于遗留的命令式类型注册。另请参阅:配置QML语言服务器,从C++定义QML类型,现代QML模块,将QML模块移植到CMake。
We added support for the Diagnostic.CodeDescription feature of the Language Server Protocol, and added the option to enable or disable language servers per project.
我们增加了对诊断的支持。语言服务器协议的CodeDescription功能,并添加了为每个项目启用或禁用语言服务器的选项。
Projects
项目
We have created a new settings category Preferences > SDKs to accomodate the Android, QNX, and MCU SDK preferences together with a new setting for the Windows App SDK there.
我们创建了一个新的设置类别“首选项”>“SDK”,以适应Android、QNX和MCU SDK首选项,以及Windows App SDK的新设置。
The Kits preferences are a bit more vertically compact now, because we moved some related settings to the same line. We also added an option for the run environment, additionally to the existing build environment. These are inherited by the build and run environments of all projects that use the kit. The build device type is now an explicit setting, instead of just inferred from the build device. This helps against accidentally switching to an incompatible device.
现在,套件首选项在垂直方向上更加紧凑,因为我们将一些相关设置移动到了同一行。除了现有的构建环境之外,我们还为运行环境添加了一个选项。这些由使用该工具包的所有项目的构建和运行环境继承。构建设备类型现在是一个显式设置,而不仅仅是从构建设备推断出来的。这有助于防止意外切换到不兼容的设备。

For CMake projects we simplified the project tree for directory hierarchies with empty intermediate directories, improved the performance when detecting changes of the CMake configuration outside of Qt Creator, and fixed issues with detecting the presence of the Ninja build tool.
对于CMake项目,我们简化了具有空中间目录的目录层次结构的项目树,提高了在Qt Creator之外检测CMake配置更改时的性能,并修复了检测Ninja构建工具存在的问题。
Analyzers
分析器
Axivion Suite provides images for issues. The integration in Qt Creator now supports showing these in the issue details view.
Axivion Suite为问题提供镜像。Qt Creator中的集成现在支持在问题详细信息视图中显示这些内容。
The Coco integration can now actually configure CMake and qmake projects for code coverage instead of just being able to load and show an existing report. It adds a global preference page Preferences > Coco where you can set the directory where Coco is installed, if it wasn't detected automatically. Project-specific settings are used to specify CoverageScanner options. A new build step that enables the generation of the coverage report can then be added to a build configuration of the project. Find out more in the Documentation.
Coco集成现在可以实际配置CMake和qmake项目的代码覆盖率,而不仅仅是加载和显示现有的报告。它添加了一个全局首选项页面“首选项”>“Coco”,如果没有自动检测到Coco,可以在其中设置安装Coco的目录。项目特定设置用于指定CoverageScanner选项。然后,可以将能够生成覆盖率报告的新构建步骤添加到项目的构建配置中。在文档中了解更多信息。
Version Control
版本控制
The version control support in Qt Creator now detects if a file is under a supported version control even if the corresponding plugin is not enabled (for most version control systems). It then informs you that the plugin is available and gives you the option to enable it.
Qt Creator中的版本控制支持现在可以检测文件是否受支持的版本控制,即使相应的插件未启用(对于大多数版本控制系统)。然后,它会通知您插件可用,并提供启用它的选项。

Platform Support
平台支持
We fixed an issue on Windows FAT file systems, which lead to a lot of temporary files being created and only removed at Qt Creator shutdown.
我们修复了Windows FAT文件系统上的一个问题,该问题导致创建了许多临时文件,只有在Qt Creator关闭时才能删除。
Application output and C++ debugging is finally supported also on iOS devices with iOS 17 and later.
iOS 17及更高版本的iOS设备最终也支持应用程序输出和C++调试。
There have been many more fixes and improvements, please check our change log for more details!
还有更多的修复和改进,请查看我们的更改日志以了解更多详细信息!
Get Qt Creator 16
获取Qt Creator 16
The new version is available under Qt Creator > Qt Creator 16.0.0 as an update in the Qt Online Installer (commercial, opensource). You also find commercially licensed offline installers on the Qt Account Portal, and opensource packages on our opensource download page. Qt Creator 16 is a free upgrade for commercial license holders.
新版本可在Qt Creator>Qt Creator 16.0.0下获得,作为Qt Online Installer(商业、开源)中的更新。还可以在Qt帐户门户上找到商业许可的离线安装程序,并在我们的开源下载页面上找到开源软件包。Qt Creator 16是商业许可证持有者的免费升级。
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.
请在我们的bug跟踪器中发布问题。还可以在IRC上找到我们,在IRC.libera.chat上的#qt-creater上,以及在qt creator邮件列表上。
You can read the Qt Creator Manual in Qt Creator in the Help mode or access it online in the Qt documentation portal.
可以在Qt Creator的帮助模式下阅读Qt Creator手册,也可以在Qt文档门户中在线访问。

465

被折叠的 条评论
为什么被折叠?



