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()
Qt Code:
ByteID = oneFrame.mid(3,1); qDebug() << "ByteID = " << (*ByteID).toHex(); // return 0A --> working perfectly qDebug() << "ByteID = " << (*ByteID).toUInt(); // return 0To copy to clipboard, switch view to plain text mode
I'm serching on Google but I don't find a correct response
Bookmarks