Quantcast
Channel: Installation and Deployment
Viewing all articles
Browse latest Browse all 22112

[SOLVED]QByteArray values to hex formatted QString

$
0
0
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

Viewing all articles
Browse latest Browse all 22112

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>