Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
cout in qtcreator
s002wjh last edited by
how to get cout <<"test"<<endl working in qtcreator? I know I can use qdebug, but I couldn't never get the qdebug work in Linux terminal except cout.
JonB last edited by JonB
Isn't there an Application Output window in Qt Creator? Are you compiling/linking/configured as a console application?
ODБOï last edited by
@s002wjh maybe silly question but did you #include <iostream> ?
The Qt way of doing this is:
QTextStream out(stdout); out << "something";
However you should also be able to use the standard means (i.e.
Kent-Dorfman last edited by
and of course OP needs to reference the std namespace where cout lives.