[Qt] V2.0 Qt 4.5.X

Den Jean Den.Jean at telenet.be
Wed Jan 20 19:06:46 CET 2010


On Wednesday 20 January 2010 08:20:12 you wrote:
> Is there any way to know what qt version is used (I mean dinamically) ?
Added it for next version 
> I think that qt have such macro, but don't know if it can be added to 
> bindings .. 
using the macro would not be dynamically 
(it would return the Qt version of Qt Lib when libQt4Pas was compiled), 
actually it is not a macro but a #define

qt source: qglobal.h
...
#define QT_VERSION_STR "4.5.3"
...
Q_CORE_EXPORT const char *qVersion(); 
...

I have added the qVersion flat function (because it is not 
a method of a class -> it was not added)


regards,

Den Jean




More information about the Qt mailing list