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

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -