Hello,
I convert a QByteArray to int using the toInt() function
So when I try to display the int value, its return 0
I'm trying also toUInt()
ByteID = oneFrame.mid(3,1);
qDebug() << "ByteID = " << (*ByteID).toHex(); // return 0A --> working perfectly
qDebug() << "ByteID = " << (*ByteID).toUInt(); // return 0
QByteArray* ByteID = new QByteArray;
ByteID = oneFrame.mid(3,1);
qDebug() << "ByteID = " << (*ByteID).toHex(); // return 0A --> working perfectly
qDebug() << "ByteID = " << (*ByteID).toUInt(); // return 0
To copy to clipboard, switch view to plain text mode
I'm serching on Google but I don't find a correct response
Bookmarks