QByteArray to QString containing hex data
econsysqtdev last edited by
I am trying to convert a QByteArray to QString. The array consists of hex data.
ba = 01;
ba = 80;
ba = 7F;
ba = 52;
I'm trying to convert the above array to QString as "01807F52". I tried using QByteArray::number, but facing issue with 7F.
Can someone give me a hint how to achieve this.
Any help is greatly appreciated.
Note, however, that:
ba = 01; ba = 80; ba = 7F; ba = 52;
should rather be:
ba = 0x01; ba = 0x80; ba = 0x7F; ba = 0x52;