With QFile and its QIODevice API.
What I understand is that you simply want a hex dump of the file. The most trivial approach (albeit far from optimal in terms of memory) is:
Qt Code:
out.write(in.readAll().toHex());To copy to clipboard, switch view to plain text mode
You can do the same if you want a decimal encoding, only that you need to iterate over each byte in the array and convert it manually to a decimal value.






Reply With Quote
Bookmarks