qhexedit2 icon indicating copy to clipboard operation
qhexedit2 copied to clipboard

I need a utility to compare binaries with two qHexEdit plugins.

Open bigbigmdm opened this issue 7 months ago • 4 comments
trafficstars

I need a utility to compare binaries with two qHexEdit plugins. I would like all differing bytes in either plugin to be highlighted in color. How can I do this?

Image

The size of the files can be very large.

bigbigmdm avatar Apr 08 '25 06:04 bigbigmdm

What is meant by binary comparison? Should it simply be compared byte by byte or should insertions and deletions also be considered? Then it becomes complicated, as it can be difficult to recognize exactly what has been inserted or deleted.

A simple binary comparison without insertion/deletion should be easy to implement:

  • Use two QHexEdits and synchronize vertical scrolling
  • Compare visible content
  • Mark differences

However, I do not see this as the task of this widget, but rather of the associated application.

Simsys avatar Apr 08 '25 07:04 Simsys

Yes, you only need to compare byte by byte. Will I need to use the addUserArea function to do this?

Can I use this function one to two million times without any problems?

Can you please tell me how to make vertical scroll synchronisation for two QHexEdit components?

bigbigmdm avatar Apr 08 '25 08:04 bigbigmdm

Hello, @Simsys ! I used two QHexEdits and synchronised vertical scrolling.

Image

Answer me please:

  1. How to compare only visible content?
  2. How to mark the differences?

bigbigmdm avatar Apr 15 '25 08:04 bigbigmdm

I built it here, but to work in the qhexedit.h file, I need to move _bPosFirst and _bPosLast from the private section to the public section.

bigbigmdm avatar Apr 16 '25 08:04 bigbigmdm

I have opened a new ticket for this requirement (#178).

This ticket can now be closed.

Simsys avatar Jul 16 '25 13:07 Simsys