How to redirect a qDebug in a widget
Hi, I have a project developed in Windows using Eclipse IDE with the integration of QT library.
I would to display my qDebug() messages not in a console but in a GUI (e.g with a QLabel).
Is there a way to do this?
Hi, what about using
QLabel.setText "My Message";
qDebug() <<"My Message";
have a look at the "Debug output browser in the wiki":http://qt-project.org/wiki/Browser_for_QDebug_output
hope it helps
for Qt5 you need qInstallMessageHandler instead of qInstallMsgHandler