SPlatten last edited by SPlatten
In my .pro file I have added a definition:
DEFINES += QT_PRECATED_WARNINGS TRAINER
Is this the correct way to add a second definition?
When I look at the source in Qt Creator:
#if defined(TRAINER) /*Source is not greyed out which is what I expect*/ #else /*Source IS greyed again what I expect*/ #endif
What is confusing me is that when I launch the application in debugger, It steps into the code that IS greyed, whats going on?
DEFINES += QT_PRECATED_WARNINGS DEFINES += TRAINER
This works, so its just confusing that it works either way in Qt Creator but not when debugging.
VRonin last edited by
JoeCFD last edited by
Specifies preprocessor defines for the debug configuration. The values of this variable get added to DEFINES after the project is loaded. This variable is typically set in qmake.conf and rarely needs to be modified.
This variable was introduced in Qt 5.13.2.
Specifies preprocessor defines for the release configuration. The values of this variable get added to DEFINES after the project is loaded. This variable is typically set in qmake.conf and rarely needs to be modified.
SimonSchroeder last edited by
BTW: Do you mean
SPlatten last edited by
Yes, QT_DEPRECATED_WARNINGS is correct: