Hi!
I’d like to display QByteArray byte values in my plaintextedit in the following format:
00 00 00 …. 00 (20 values per line)
00 00 00 … 00
..etc
I’m using QString::number ( qbytearray[i], 16) but it casts to long/int/uint formats and byte numbers>0×7f show up in the form of ffffffxx (for example if my byte=0xC0 then the output will be ffffffc0). I’m new to Qt so before I dive into improvised variable manipulations I’d like to ask if there is an easier method provided by Qt libraries. Thank you
↧