Dax89 / QHexView

A versatile Hexadecimal widget for Qt5

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

QHexview displays the extension

neomissing opened this issue · comments

At present, Qhexview displays a number by default at 8bit. Is it possible to support 16bit display a number and 32bit display a number? May I ask which interface can be modified to achieve this,
16bit
32bit

the key to display is

https://github.com/Dax89/QHexView/blob/master/document/qhexrenderer.cpp#L490

but, you really need to check everywhere you see a 3, you will have to replace with something, so that click, select and move work correctly.

Rendering code must be changed in order to support various display modes, currently is hardcoded to 8 bit visualization.

I'm thinking to rewrite the entire rendering part because is old and very complex, it can be simplified a lot

OK, thank you, I will look at the overall code, looking forward to the update of the new rendering QHexview

Implemented in 5.0 branch: https://github.com/Dax89/QHexView/tree/5.0
This week I will merge it to master!

/* From QHexDocument... */
document->setGroupLength(4); // It will be rendered as '00000000 00000000'

/* ...or from the widget itself */
hexview->setGroupLength(2);   // It will be renderer as '0000 0000 0000 0000'