View Full Version : How to create HexViewer for a file

7th August 2007, 13:29
hi all
i am working on QT4.1 on Mac Platform
i want to know if i want to show the Hex view of a file then what basic widgets to start i have to use and how to show them like same as Hex Edit show to a file.

|offset |0 1 2 3 4 5 6 7 8 9 A B C D E F |ASCII Text |


7th August 2007, 13:41
See this thread: http://www.qtcentre.org/forum/f-qt-programming-2/t-hex-viewer-in-qt-8076.html/?highlight=editor.

But I guess you have many options. You could use even a QTableView with a Qt::NoPen grid.

As for actually displaying hex data and offsets take a look at QIODevice & QFile for reading buffers from files.