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:
  1. QByteArray* ByteID = new QByteArray;
  2. ByteID = oneFrame.mid(3,1);
  3. qDebug() << "ByteID = " << (*ByteID).toHex(); // return 0A --> working perfectly
  4. 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