PDA

View Full Version : QDebug messages show in application?



Leutzig
16th December 2015, 09:52
Hi,

I was wondering if there is a way to display qDebug messages in my exe-file when I deploy the application, since I've been using them to print text.
For instance a text field in the application where they will appear?

Thanks,

//Leutzig

anda_skoa
16th December 2015, 10:43
You can install a Qt message handler function and in that decide where to output the messages to.

See http://doc.qt.io/qt-5/qtglobal.html#qInstallMessageHandler

Cheers,
_