PDA

View Full Version : version info



roxton
1st May 2008, 11:35
How to gat access to the VERSION variable defined in .pro file from the C++ source? For example, I set DEFINE=1.0.1. How I can get this value from my .cpp?

jacek
1st May 2008, 14:22
qmake doesn't pass such variables to the compiler, so you have to do that using DEFINES variable.

See this thread: http://www.qtcentre.org/forum/f-qt-programming-2/t-getting-version-from-code-8283.html