[Qt-interest] Unable to draw QString after conversion

Alessandro Portale Alessandro.Portale at trolltech.com
Sat Jan 30 14:45:10 CET 2010


Am 30.01.2010 14:06, schrieb trinathpujari:
> For conversion from unsigned short to QString i am using the API
> QString str = QString :: fromUtf16(string, length);

For number-to-QString conversion, You can use QString::number()
   http://doc.qt.nokia.com/latest/qstring.html#number-5

Your code:
   paint. drawText(10, 10, QString::number(123456));

Br,
Alessandro



More information about the Qt-interest-old mailing list