QGIS API Documentation 3.37.0-Master (fdefdf9c27f)
Public Member Functions | List of all members
QgsCheckBoxDelegate Class Reference

QStyledItemDelegate subclass for QgsCheckableComboBox. More...

#include <qgscheckablecombobox.h>

Inheritance diagram for QgsCheckBoxDelegate:
Inheritance graph
[legend]

Public Member Functions

 QgsCheckBoxDelegate (QObject *parent=nullptr)
 Constructor for QgsCheckBoxDelegate. More...
 
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. More...
 

Detailed Description

QStyledItemDelegate subclass for QgsCheckableComboBox.

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

Note
not available in Python bindings

Definition at line 93 of file qgscheckablecombobox.h.

Constructor & Destructor Documentation

◆ QgsCheckBoxDelegate()

QgsCheckBoxDelegate::QgsCheckBoxDelegate ( QObject *  parent = nullptr)

Constructor for QgsCheckBoxDelegate.

Parameters
parentparent object

Definition at line 64 of file qgscheckablecombobox.cpp.

Member Function Documentation

◆ paint()

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
painterpainter to use
optionstyle option
indexitem index

Definition at line 69 of file qgscheckablecombobox.cpp.


The documentation for this class was generated from the following files: