Qt 6 中 Qt 模块的变更
Qt 6 是为了使该框架更高效、更易于使用而进行的刻意努力的结果。
我们力求在每个版本中保持所有公共 API 的二进制和源代码兼容性,但为了使 Qt 成为更好的框架,某些变更在所难免。下面列出了可能影响您应用程序的变更,这些信息将有助于您从 Qt 5 过渡到 Qt 6。
有关 Qt 6 特定版本变更的信息,请访问“Qt 6 的新功能”。
将 QtBluetooth 迁移至 Qt 6 | |
将Qt Charts 迁移至Qt 6 | |
已改进以支持可变数量的参数 | |
容器、字符串、序列化和 I/O 类的变更 | |
只需极少的移植工作即可切换到 Qt 6 | |
对 Qt Mac Extras、Qt Windows Extras 和 Qt X11 Extras 进行了修改。 | |
内核、文本、绘制和实用类已进行修改 | |
将Qt Location 迁移至Qt 6 | |
将Qt Multimedia 迁移至Qt 6 | |
将Qt NFC 迁移至Qt 6 | |
将Qt Network 迁移至Qt 6 | |
已迁移 QOpenGL 类,QOpenGLWidget 类已移至Qt OpenGL Widgets | |
将Qt Positioning 迁移至 Qt 6 | |
通用 API 整合 | |
将Qt Qml 迁移至 Qt 6 | |
将Qt Quick 迁移至Qt 6 | |
将Qt Quick 3D 迁移至 Qt 6 | |
将Qt Quick Controls 迁移至 Qt 6 | |
将Qt Quick Qt Labs Platform 迁移至 Qt 6 | |
将Qt Quick Test 迁移至 Qt 6 | |
将Qt Quick Timeline 迁移至 Qt 6 | |
将Qt Remote Objects 迁移至 Qt 6 | |
将Qt SCXML 迁移至 Qt 6 | |
QSqlQuery 类中 boundValues() 的返回类型已更改 | |
将Qt SVG 迁移至 Qt 6 | |
将Qt Sensors 迁移至 Qt 6 | |
将 Qt SerialBus 迁移到 Qt 6 | |
将 Qt SerialPort 迁移到 Qt 6 | |
将Qt State Machine 迁移至 Qt 6 | |
与触控相关的功能变更 | |
将Qt TextToSpeech 迁移到 Qt 6 | |
将Qt WebChannel 迁移到 Qt 6 | |
将Qt WebEngine 迁移到 Qt 6 | |
将Qt WebSockets 迁移至 Qt 6 | |
将Qt WebView 迁移至Qt 6 | |
内核类、控件、项视图和实用类中的变更 | |
使用 QXmlStreamReader 读取 XML 文件 |
相关主题
- 使用 Clazy 检查将 C++ 应用程序移植到 Qt 6
- 受支持模块的变更——Qt 5 模块在 Qt 6.0 中的状态
- Qt 6 中的构建系统变更
© 2026 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.