[Interest] QByteArray to quint64

Tom Isaacson Tom.Isaacson at navico.com
Wed Sep 16 12:28:30 CEST 2015


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?

Thanks,

Tom






More information about the Interest mailing list