HexWidget

class HexWidget

Inherits from QScrollArea

Public Types

enum AddrWidth

Values:

AddrWidth32 = 8
AddrWidth64 = 16
enum ItemSize

Values:

ItemSizeByte = 1
ItemSizeWord = 2
ItemSizeDword = 4
ItemSizeQword = 8
enum ItemFormat

Values:

ItemFormatHex
ItemFormatOct
ItemFormatDec
ItemFormatSignedDec
ItemFormatFloat
enum ColumnMode

Values:

Fixed
PowerOf2

Public Functions

HexWidget(QWidget *parent = nullptr)
~HexWidget()
void setMonospaceFont(const QFont &font)
void setItemSize(int nbytes)
void setItemFormat(ItemFormat format)
void setItemEndianess(bool bigEndian)
void setItemGroupSize(int size)
void setFixedLineSize(int bytes)

Sets line size in bytes. Changes column mode to fixed. Command can be rejected if current item format is bigger than requested size.

Parameters
  • bytes: line size in bytes.

void setColumnMode(ColumnMode mode)
void selectRange(RVA start, RVA end)

Select non empty inclusive range [start; end].

Parameters
  • start:
  • end:

void clearSelection()
HexWidget::Selection getSelection()

Public Slots

void seek(uint64_t address)
void refresh()
void updateColors()

Signal

signal HexWidget::selectionChanged
signal HexWidget::positionChanged
struct Selection

Public Members

bool empty
RVA startAddress
RVA endAddress