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

Popular posts from this blog

objective c - iPhone and it's wireless area -

unix - Listing all shared memory segments used by a process on AIX5.3+ -

tsql - Correct sql/hql query (aggregate in where clause) -