[Qt-interest] Using DEFINES for testing a condition

André Fillipe andref at syst.com.br
Tue Jul 13 15:15:01 CEST 2010


Or else,

$qmake CONFIG+=TEST

in pro file

TEST {
#do some stuff
}
else {
#do something
}

Note that, in this case, you won't be able to check for the TEST
definition inside .h and .cpp files.

-- 
André Fillipe




More information about the Qt-interest-old mailing list