[Interest] Putting a define with spaces in the .pro file?

Murphy, Sean smurphy at walbro.com
Fri Nov 13 23:46:08 CET 2015


 
> That's because operator<< for QStrings always quotes them. You can do one of
> two ways to get rid of them:
> 
> 	qDebug().noquote() << QString(MY_STRING); or
> 	qDebug() << MY_STRING;
> 
> or, even better, if you care about the actual output format:
> 
> 	std::cout << MY_STRING << std::endl;
> 
> qDebug() does *not* guarantee its output will remain stable over time. It's
> meant for debugging and your users should never have to see them.

Ah, my bad then. It actually was doing what I intended it to do, I just chose the wrong way to verify it!

Thanks,
Sean



More information about the Interest mailing list