How do I catch messages/errors that go to "Application Output"?
-
I want to catch messages such as:
@QNativeSocketEngine::write() was not called in QAbstractSocket::ConnectedState@That usually get written to the Application Output.
How do I go about this?
-
into application output writes qDebug() ...
-
I want to catch the message and do something with it. I.e. Display a MessageBox stating that the server couldn't be reached.
So how would I go about catching the message? Is there any literature I can't find on it?
[quote author="Peppy" date="1374009268"]into application output writes qDebug() ...[/quote]
-
what? Well, you have to redirect output, or install your custom event handler:
"https://qt-project.org/wiki/Browser_for_QDebug_output":https://qt-project.org/wiki/Browser_for_QDebug_output
"http://qt-project.org/doc/qt-4.8/qtglobal.html#qInstallMsgHandler":http://qt-project.org/doc/qt-4.8/qtglobal.html#qInstallMsgHandler