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

Thiago Macieira thiago.macieira at intel.com
Fri Feb 28 17:33:55 CET 2014


Em sex 28 fev 2014, às 14:29:05, Sebastian Lehmann escreveu:
> This can be discussed for QBA and QString separately. Typically you  
> don't have null chars in a QString and _most_ strings only contain  
> printable chars (except '\n'), yet when you debug them (again, that's  
> what qDebug & friends are about), you want to see the raw content and  
> see differences between encodings of the same (looking) text. This has  
> already been discussed in the mailing list recently, but I've lost the  
> overview.

That was done only for QtTest failures.

And the QByteArray change[*] was not approved prior to the feature freeze, so 
it's not making into 5.3. Only QStrings will be escaped in 5.3.

[*] the change with a fix to tst_selftests which affected the CI but not my 
machine
-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Development mailing list