PDA

View Full Version : How to get Qt version?



Caius Aérobus
4th April 2008, 14:04
I just would like to know which version of Qt is installed on a computer, assuming it is not clear whether teh doc and the runtime environment have the same version and of course it has not been installed in a "speaking" directory, such as qt-...-4.3.3 ?

wysota
4th April 2008, 14:12
You want that during compile time or run time?

Caius Aérobus
4th April 2008, 14:24
You want that during compile time or run time?

Neither, I just need to know which version is installed because I my code works well on a computer and crashes on the other one. I suppose tehre is a .h file in which I can find this information.

wysota
4th April 2008, 17:12
type in qmake -v

ztMAMOHT
5th April 2013, 11:09
qDebug() << QT_VERSION_STR;