Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Qt GUI application + Terminal debug
fem_dev 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?
Pablo J. Rogina last edited by
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()