本页内容

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 Qt 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

内核类、控件、项视图和实用类中的变更

Changes to Qt XML

使用 QXmlStreamReader 读取 XML 文件

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