Hi,
I downloaded and reviewed the code from QHexEdit. It uses QPainter and Co, meaning a graphics-widget, to "draw" the objects as well. First I also thought using text-based-only widgets would be the best solution, but then I found out that it's often too restricting, e. g. for visualizing several selections. But maybe there is still a better solution!
The main reason for me implementing my own hex-editor is actually that almost all implementations I know (Okteta, QHexEdit) copy the contents of the file opened into memory which is the real dilemma since it does not allow you to open whole hard-disks or images of storage devices. And actually it's as easy as using a memory-map (mmap) which allows you to open files or devices as if they were huge arrays. On the other hand I could also have replaced the QByteArray with my own model in the existing implementations ...
Best regards and thanks,
Rainer





Reply With Quote

Bookmarks