Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QHexview displays the extension #53

Closed
neomissing opened this issue Jan 31, 2021 · 4 comments
Closed

QHexview displays the extension #53

neomissing opened this issue Jan 31, 2021 · 4 comments

Comments

@neomissing
Copy link

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

@audetto
Copy link
Contributor

audetto commented Jan 31, 2021

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.

@Dax89
Copy link
Owner

Dax89 commented Jan 31, 2021

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

@neomissing
Copy link
Author

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

@Dax89
Copy link
Owner

Dax89 commented Feb 28, 2022

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'

@Dax89 Dax89 closed this as completed Feb 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants