dev/qt/ QtDebugging


Printing to console

See this stackoverflow question.

#include <QtGlobal>
...
QString s = "mr flibble";
qDebug("%s", qUtf8Printable(s));
// or
qDebug(qUtf8Printable(s));
// or
qDebug().nospace() << "abc" << s << qPrintable(s) << "def";