Qt 6.0 的新特性

Qt 6 中编译系统的变化

从源代码构建 Qt 现在需要 CMake 和 Ninja。请参阅Qt 6 中的构建系统变更,了解有关配置中的这一变更和其他变更的更多详情。

对支持模块的更改

与 Qt 5 相比,Qt 6.0 进行了精简,Qt 6.0 的默认安装中不再包含某些模块。由于 Qt 的模块化结构,新模块或以前的 Qt 5 模块可能会出现在未来的 Qt 6 版本中。有关详细信息,请访问 "所有模块"页面。

Qt 6 中 Qt 模块的变化列出了 API 的变化。

Qt 6.0 中的新模块

以下是 Qt 6.0 中的新模块。

Qt 6.0 中删除的模块

以下是 Qt 6.0 中没有的 Qt 5 模块。它们可能会在 Qt 6 的未来版本中重新引入。

模块qmake评论
Qt for Android 额外模块androidextras查看Qt Extras 模块的更改
Qt Bluetoothbluetooth
Qt Chartscharts
Qt Data Visualizationdatavisualization
QtGraphical Effects可通过Qt 5 Compatibility APIs 获取 Graphical Effects
Qt Locationlocation
Qt Mac 额外模块macextras查看Qt Extras 模块的更改
Qt Multimediamultimedia
Qt Multimedia 小工具multimediawidgets
Qt NFCnfc
Qt Positioningpositioning
Qt 采购purchasing
Qt Quick 附加组件合并到 Qt Quick Controls
Qt Remote Objectsremoteobjects
Qt 脚本qtscript
Qt SCXMLscxml
Qt 脚本工具scripttools
Qt Sensorssensors
Qt Serial Busserialbus
Qt Serial Portserialport
Qt 演讲texttospeech
Qt WebChannelwebchannel
QtWebEnginewebenginecore
Qt WebSocketswebsockets
QtWebViewwebview
Qt Windows Extraswinextras查看Qt Extras 模块的更改
Qt X11 额外功能x11extras查看Qt Extras 模块的更改
Qt XML 模式xmlpatterns

API 变化列表

这些页面概述了 Qt 6.0 中的 API 变化:

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.