PDA

View Full Version : How to convert this java parameter



razumi
13th July 2009, 07:02
Hi,
I'm still new with qt.
Got a problem to convert this java parameter into qt

String out;
return (new String(new BigInteger(out, 16).toByteArray()));


How to do this in qt ?
thank you

Lykurg
13th July 2009, 08:19
Have a look at QString::number().

razumi
15th July 2009, 05:55
Thank you.
I've finally found the solution.

QByteArray text = QByteArray::fromHex(out.toAscii());