Qt GUI application + Terminal debug
-
wrote on 11 Oct 2019, 13:24 last edited by
I would like to know if is possible to create a Qt GUI application and, inside the application use:
qDebug() << "My GUI app writing a message on terminal..."
And then run it from Terminal and see both GUI and terminal messages....
Is this possible?
-
I would like to know if is possible to create a Qt GUI application and, inside the application use:
qDebug() << "My GUI app writing a message on terminal..."
And then run it from Terminal and see both GUI and terminal messages....
Is this possible?
wrote on 11 Oct 2019, 13:32 last edited by@fem_dev you may want to check documentation about debugging techniques
The Qt implementation of these macros prints to the stderr output under Unix/X11 and macOS. With Windows, if it is a console application, the text is sent to console; otherwise, it is sent to the debugger.
Please remember that you can also install your own message handler using qInstallMessageHandler()
2/2