How to output to console
-
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 -
Hi @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
-
That's it. Thank you very much for a quick response.