QGIS API Documentation 3.34.0-Prizren (ffbdd678812)
Loading...
Searching...
No Matches
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.
 
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.
 

Detailed Description

QStyledItemDelegate subclass for QgsCheckableComboBox.

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

Note
not available in Python bindings
Since
QGIS 3.0

Definition at line 95 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: