QT_MESSAGELOGCONTEXT: more detailed qDebug()

Written by  on April 19, 2018 

Add to your environment:

Windows: set either via “set” or via RapidEnvironmentEditor.
In case of a no-debug-build, add QT_MESSAGELOGCONTEXT to DEFINES in the pro-file.

(Open question: if there are just mpc/vcxproj-files, then how to trigger?)

related sources:
* https://woboq.com/blog/nice-debug-output-with-qt.html
* https://fecub.wordpress.com/2015/11/04/better-debug-output-using-qt_message_pattern/
* http://doc.qt.io/qt-5/qmessagelogcontext.html#details

Category : C++QtVisualStudioWin

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.