[Development] qPrintable encoding issues
Thiago Macieira
thiago.macieira at intel.com
Fri Feb 28 18:29:53 CET 2014
Em sex 28 fev 2014, às 18:09:36, Olivier Goffart escreveu:
> > So:
> > qDebug("%ls\n", qWPrintable(s));
>
> That will not work because sizeof(wchar_t) is 4 on linux.
> (and QString::vsprintf wands %ls to be ushort*)
Then we fix QString::vsprintf.
We can use %S, which is an alias for %ls on regular printf.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
More information about the Development
mailing list