本页内容

Qt SerialPort 的变更

Qt 6 是为了使框架更高效、更易于使用而进行的有意识努力的成果。 我们力求在每个版本中保持所有公开 API 的二进制兼容性和源代码兼容性。但为了使 Qt 成为更好的框架,某些变更在所难免。在本主题中,我们将总结 Qt SerialPort 模块中的这些变更,并提供相应的处理指南。

变更概述

总体而言,Qt SerialPort 模块与 Qt 5 版本在源码层面保持兼容,该库的用户通常无需修改项目,或仅需进行微调即可继续使用。

构建系统

与 Qt6 整体情况一致,Qt SerialPort 模块除了支持 qmake 之外,还支持 cmake。

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