<QtVersion> Proxy Page


const char *qVersion()


Function Documentation

const char *qVersion()

Returns the version number of Qt at runtime as a string (for example, "6.1.2"). This is the version of the Qt library in use at runtime, which need not be the version the application was compiled with.

See also QT_VERSION_STR and QLibraryInfo::version().

Macro Documentation


This macro expands to a string that specifies Qt's version number (for example, "6.1.2"). This is the version with which the application is compiled. This may be a different version than the version the application will find itself using at runtime.

See also qVersion() and QT_VERSION.

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