<QtVersion>
アプリケーションが実行されているQtのバージョン、およびコンパイルに使用されたバージョンに関する情報。詳細...
| Header: | #include <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も参照してください 。
© 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.