QtCreator: Application output
i know this quesiton was raised a lot of times, howver still don't see the answer.
How to put console output into APplication output panel in Qt Creator?
I see mostly the reply is a using qDebug()
however Qt SDK is not installed on my host
the only way is a using standard library .
any ideas, please?
You could write to the output stream using
QTextStream, however I'm not sure it'll get into the QtCreator applicaiton output window. Usually
qDebug()is used for that, but you could try this one as well:
QTextStream cerr(stderr); cerr << "Something that appears on the error stream";
Or for the console window:
QTextStream cout(stdout); cout << "Something that appears on the standard output";
If you're not using Qt, you could try the standard streams:
srd::cerr << "Some text on the error stream";
In Qt Creator, go to Projects and Run, there is a checkbox 'Run in terminal'. If you uncheck that your output wil be printed in Qt creators' "Application Output" panel.
Hope that is what you want
did you really check this? it doesn't work for me;
- std::cerr output is not shown in APplication Output
- std::cout is also not showing there
independently of in console or not option
Debugging has finished
is only messages in Application Output
I don't know if you resolved, but the ultimate correct answer for me was that of asanaka424.