I am currently coding a qt application using QT creator on windows 7.
I browse the source of Qt and saw some debug message with require QT_DEBUG_DRAW to be defined. I tried CONFIG += QT_DEBUG_DRAW, DEFINES += QT_DEBUG_DRAW in the .pro file, I tried to #define QT_DEBUG_DRAW before all the includes of QT file and I also tried to set an environnement variable QT_DEBUG_DRAW to 1, but i still don't get the prints message.
Does anybody know how to enable this prints?
Setting the pre-processing variable in your code does not change the fact that Qt was built without this variable set.
You need to recompile Qt with this pre-processing variable set. To do so, download Qt opensource and specify the variable upon configuration:
configure -D QT_DEBUG_DRAW
nmake
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.