settings from qt project file in code -
Is the .pro file settings accessible from any type of code?
I want to use conditional compilation but I have to know whether the testLab (or whatever) in the project file
QT + = testlib
Is added. / P>
Thanks in advance
Yes if your application has been compiled with TestLab , Then QT_TESTLIB_LIB
will be defined.
Then you can:
#ifdef QT_TESTLIB_LIB // test code #endif
Comments
Post a Comment