How to output to console
-
wrote on 21 Feb 2019, 15:06 last edited by
Hello,
I have recently taken over a project repository and when running the program I am unable to use any of the outputting methods mentioned in the response here such as qInfo(), qDebug() etc.:
https://stackoverflow.com/questions/3886105/how-to-print-to-console-when-using-qtThese functions work as expected with other QT Projects I have written, but don't in the project I have inherited.
Do you have any advice for what the problem might be?
Many thanks
Alex -
Hello,
I have recently taken over a project repository and when running the program I am unable to use any of the outputting methods mentioned in the response here such as qInfo(), qDebug() etc.:
https://stackoverflow.com/questions/3886105/how-to-print-to-console-when-using-qtThese functions work as expected with other QT Projects I have written, but don't in the project I have inherited.
Do you have any advice for what the problem might be?
Many thanks
AlexHi @Alex-Williams,
Which Qt version are you running? On which operating system?
The first thing I would check is if there is a
qInstallMessageHandler
somewhere in the project (it wasqInstallMsgHandler
in Qt4 times). There you can redirect all the debug output.Regards
-
wrote on 21 Feb 2019, 16:06 last edited by
That's it. Thank you very much for a quick response.
2/3