Unsolved cout in qtcreator
-
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.
-
@s002wjh
Isn't there an Application Output window in Qt Creator? Are you compiling/linking/configured as a console application? -
@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.
cout
). -
and of course OP needs to reference the std namespace where cout lives.