[Development] RFC: [Logging] Add quote(), noquote() stream modifiers to QDebug

Koehne Kai Kai.Koehne at digia.com
Tue Mar 4 12:37:50 CET 2014

On 2014-02-28 05:41, Koehne Kai wrote:
> ...
> OTOH, probably most of the time I want unquoted QString, I would end up
> calling 'noquote()' immediately, and quote() almost never, so...

That's what I expect to be the most common, too:

qDebug().noquote() << ...


qDebug().nospace().noquote() << ...

if the last variant is common enough we could even add a "bare()" method that does, both:

// equivalent to nospace().noquote().
qDebug().bare() << ...



More information about the Development mailing list