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?
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-p...code-8283.html
roxton (1st May 2008)
Bookmarks