QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
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

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 65 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 70 of file qgscheckablecombobox.cpp.


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