QgsCheckBoxDelegate class

QStyledItemDelegate subclass for QgsCheckableComboBox.

Needed for correct drawing of the checkable items on Mac and GTK.

Constructors, destructors, conversion operators

QgsCheckBoxDelegate(QObject* parent = nullptr)
Constructor for QgsCheckBoxDelegate.

Public functions

void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const override
Renders the delegate using the given painter and style option for the item specified by index.

Function documentation

QgsCheckBoxDelegate::QgsCheckBoxDelegate(QObject* parent = nullptr)

Constructor for QgsCheckBoxDelegate.

Parameters
parent parent object

void QgsCheckBoxDelegate::paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const override

Renders the delegate using the given painter and style option for the item specified by index.

Parameters
painter painter to use
option style option
index item index