How to print to console when using Qt?
Use QTextStream:
1 2 3 4 5 6 7 8 9 10 11 12 |
#include <QTextStream> ... QTextStream out(stdout); out << myString << endl; out << someInteger << endl; out << "bestcoding.net" << endl; ... |
How to print to console when using Qt?
Use QTextStream:
1 2 3 4 5 6 7 8 9 10 11 12 |
#include <QTextStream> ... QTextStream out(stdout); out << myString << endl; out << someInteger << endl; out << "bestcoding.net" << endl; ... |