Yes! It works!
My project.pro is now:
[...]
CONFIG += qt warn_on debug
[...]
debug {
DEFINES += MY_DEBUG
}
[...]
[...]
CONFIG += qt warn_on debug
[...]
debug {
DEFINES += MY_DEBUG
}
[...]
To copy to clipboard, switch view to plain text mode
and my project.cpp is now:
#ifdef MY_DEBUG
#define QDEBUG qDebug
#else
#define QDEBUG(fmt,arg...) ((void)0)
#endif
[...]
QDEBUG ( "Value now is %s\n", varResult.ascii() );
[...]
#ifdef MY_DEBUG
#define QDEBUG qDebug
#else
#define QDEBUG(fmt,arg...) ((void)0)
#endif
[...]
QDEBUG ( "Value now is %s\n", varResult.ascii() );
[...]
To copy to clipboard, switch view to plain text mode
Thank you very much,
the_bis
Bookmarks