I don't think all of these macros need to be defined when building your own programs. For example QT_DEBUG clearly shouldn't need to be defined - from qglobal.h:The fact that qmake defines them doesn't necessarily mean you need them, qmake may define them because they're needed for building Qt itself.Qt Code:
/* Debugging and error handling */ #if !defined(QT_NO_DEBUG) && !defined(QT_DEBUG) # define QT_DEBUG #endifTo copy to clipboard, switch view to plain text mode
That said, it's not a good idea for qmake to define macros that are not needed. Also it would indeed be a good idea to list all needed macros in a paragraph of the documentation. These really should be reported as a bug to Trolltech...
Bookmarks