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

Friedemann Kleint Friedemann.Kleint at digia.com
Fri Feb 28 15:04:31 CET 2014


Hi,

how about omitting quotes automatically for anything else but Q[C]Debug?
The common problem seems to me that warning messages automatically get 
quotes which looks semi-professional:

qWarning() << "Cannot open:" << file.name() << ": " << file.errorString();

typically results in:

Cannot open: "foo.txt" : "No such file"

It is also conceivable to use quotes only for empty strings in 
qWarning/qCritical/qFatal.

Friedemann

-- 
Friedemann Kleint
Digia, Qt




More information about the Development mailing list