Re: [Interest] QByteArray to quint64

2015-09-16 Thread Giuseppe D'Angelo
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

[Interest] QByteArray to quint64

2015-09-16 Thread Tom Isaacson
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