Il 16/09/2015 12:28, Tom Isaacson ha scritto:
If I want to convert a QByteArray to quint32 I can use:
     quint32 result = QByteArray("1234").toUInt();

But what if I want to convert a longer array to quint64? Writing cross-platform 
code requires a mix of _strtoi64() and strtoull(). Is there a simple way of 
doing this in Qt?

Are you talking about converting the decimal representation using the C locale? toULongLong().

HTH,

--
Giuseppe D'Angelo | giuseppe.dang...@kdab.com | Software Engineer
KDAB (UK) Ltd., a KDAB Group company | Tel: UK +44-1625-809908
KDAB - The Qt Experts

Attachment: smime.p7s
Description: Firma crittografica S/MIME

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to