I\'m using the the C++/Qt print function qDebug, but sometimes I would like to control how \", space and newline is appended and not use the default qDebug.
Let\'s
Combining some of the above answers you can use
qDebug() << qPrintable(var1);
to eliminate the surrounding quotes.