[Development] Howto know the Qt version in Qt source code

Matthew Brush mbrush at codebrainz.ca
Mon Dec 30 09:52:17 CET 2013

On 13-12-30 12:31 AM, Li Anthony wrote:
> Hi,
> Maybe this is a silly question. But I always want to know the Qt version when I compile Qt from source code. Is there a version file or some easy way that I can find in source code?
> Thanks.

For compile time you could use this:


If using pkg-config you could also use something like this:

pkg-config --modversion Qt5Core

Matthew Brush

More information about the Development mailing list