tags: #qt #cpp #debug #print ## Printing to console See [this stackoverflow question](https://stackoverflow.com/questions/18427191/how-to-print-string-literal-and-qstring-with-qdebug). ```cpp #include ... QString s = "mr flibble"; qDebug("%s", qUtf8Printable(s)); // or qDebug(qUtf8Printable(s)); // or qDebug().nospace() << "abc" << s << qPrintable(s) << "def"; ```