<QtVersion> 代理页面
函数
const char * | qVersion() |
宏
函数文档
[noexcept]
const char *qVersion()
以字符串形式返回运行时 Qt 的版本号(例如 "6.1.2")。这是运行时使用的 Qt 库版本,不一定是应用程序编译时使用的版本。
另请参阅 QT_VERSION_STR 和QLibraryInfo::version()。
宏文档
QT_VERSION_STR
该宏展开为一个字符串,指定 Qt 的版本号(例如 "6.1.2")。这是编译应用程序时使用的版本。该版本可能与程序运行时使用的版本不同。
另请参阅 qVersion() 和QT_VERSION 。
© 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.