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?
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
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.