Qt 6 中 Qt 模块的变化

Qt 6 是我们努力使框架更高效、更易用的结果。

我们努力在每个版本中保持所有公共 API 的二进制和源代码兼容性,但为了使 Qt 成为一个更好的框架,一些改动是不可避免的。以下是可能影响您的应用程序的更改列表,这些更改可帮助您从 Qt 5 过渡到 Qt 6。

有关 Qt 6 版本的具体变更信息,请访问Qt 6 中的新功能。

Changes to Qt Bluetooth

将 QtBluetooth 迁移到 Qt 6

Changes to Qt Charts

Qt Charts 迁移到 Qt 6

Changes to Qt Concurrent

改进了参数数量可变的工作方式

Changes to Qt Core

容器、字符串、序列化和 I/O 类的更改

Changes to Qt D-Bus

最小化移植工作,以便切换到 Qt 6

Changes to Qt Extras Modules

更改 Qt Mac Extras、Qt Windows Extras 和 Qt X11 Extras。

Changes to Qt GUI

修改了内核、文本、绘画和实用程序类

Changes to Qt Location

Qt Location 迁移到 Qt 6

Changes to Qt Multimedia

Qt Multimedia 移植到 Qt 6

Changes to Qt NFC

Qt NFC 移植到 Qt 6

Changes to Qt Network

Qt Network 迁移到 Qt 6

Changes to Qt OpenGL

迁移 QOpenGL 类,QOpenGLWidget 类已移至Qt OpenGL Widgets

Changes to Qt Positioning

Qt Positioning 迁移到 Qt 6

Changes to Qt Print Support

通用 API 整合

Changes to Qt QML

将 Qt QML 移植到 Qt 6

Changes to Qt Quick

Qt Quick 迁移到 Qt 6

Changes to Qt Quick 3D

Qt Quick 3D 迁移到 Qt 6

Changes to Qt Quick Controls

Qt Quick Controls 迁移到 Qt 6

Changes to Qt Quick Labs Platform

Qt Quick Labs Platform 移植到 Qt 6

Changes to Qt Quick Test

Qt Quick Test 移植到 Qt 6

Changes to Qt Quick Timeline

Qt Quick Timeline 迁移到 Qt 6

Changes to Qt Remote Objects

Qt Remote Objects 迁移到 Qt 6

Changes to Qt SCXML

Qt SCXML 移植到 Qt 6

Changes to Qt SQL

QSqlQuery类中boundValues()的返回类型已更改

Changes to Qt SVG

Qt SVG 移植到 Qt 6

Changes to Qt Sensors

Qt Sensors 移植到 Qt 6

Changes to Qt SerialBus

将 Qt SerialBus 移植到 Qt 6

Changes to Qt SerialPort

将 Qt SerialPort 移植到 Qt 6

Changes to Qt State Machine

Qt State Machine 移植到 Qt 6

Changes to Qt Test

与触摸相关的功能更改

Changes to Qt TextToSpeech

Qt TextToSpeech 移植到 Qt 6

Changes to Qt WebChannel

Qt WebChannel 移植到 Qt 6

Changes to Qt WebEngine

Qt WebEngine 移植到 Qt 6

Changes to Qt WebSockets

Qt WebSockets 迁移到 Qt 6

Changes to Qt WebView

Qt WebView 移植到 Qt 6

Changes to Qt Widgets

内核类、Widgets、ItemViews 和实用工具类中的更改

Changes to Qt XML

使用 QXmlStreamReader 读取 XML 文件

© 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.