Reputation: 1
Is there inside the Qt5 libraries (for Linux) a C++ function or an API to retrieve at runtime the precise version information of the Qt shared library?
The GNU glibc has gnu_get_libc_version
. The libcurl has curl_version
.
I want the equivalent for Qt5 (for the RefPerSys project, if that matters). It uses a Qt5 X11 GUI interface.
Upvotes: 1
Views: 423
Reputation: 38
Use qVersion
or QT_VERSION
(alternative).
To check a specific version: QT_VERSION_CHECK(6, 0, 0)
.
Upvotes: 1