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

Li Anthony Anthony.Li at digia.com
Mon Dec 30 10:03:28 CET 2013

One more question. I found my tree is still in 5.1.1. I have do git pull in qt5 directory. How should I do to update source code to 5.2.0?

From: Jason McDonald [mailto:macadder1 at gmail.com]
Sent: 2013年12月30日 16:51
To: Li Anthony
Cc: <development at qt-project.org>
Subject: Re: [Development] Howto know the Qt version in Qt source code

On Mon, Dec 30, 2013 at 6:31 PM, Li Anthony <Anthony.Li at digia.com<mailto:Anthony.Li at digia.com>> wrote:

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?

qglobal.h contains the following definitions that you may find useful:

#define QT_VERSION 0x050300
#define QT_VERSION_STR   "5.3.0"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20131230/48326d32/attachment.html>

More information about the Development mailing list