Class: QgsFeatureListViewDelegate

Custom item delegate for feature list views.

List of all members, including inherited members

Class Hierarchy

Inheritance diagram of qgis.gui.QgsFeatureListViewDelegate

Base classes

QItemDelegate

QAbstractItemDelegate

QObject

Enums

Element

Methods

positionToElement

setCurrentFeatureEdited

setEditSelectionModel

setFeatureSelectionModel

Signals

editButtonClicked

Emitted when the edit button is clicked for the feature with matching index.

Attributes

ICON_SIZE

class qgis.gui.QgsFeatureListViewDelegate[source]

Bases: QItemDelegate

EditElement = 0
class Element(*values)

Bases: IntEnum

EditElement = 0
SelectionElement = 1
ICON_SIZE = 24
SelectionElement = 1
signal editButtonClicked(index: QModelIndex)[source]

Emitted when the edit button is clicked for the feature with matching index.

Parameters:

index (QModelIndex)

positionToElement(self, pos: QPoint) QgsFeatureListViewDelegate.Element[source]
Parameters:

pos (QPoint)

Return type:

QgsFeatureListViewDelegate.Element

setCurrentFeatureEdited(self, state: bool)[source]
Parameters:

state (bool)

setEditSelectionModel(self, editSelectionModel: QItemSelectionModel | None)[source]
Parameters:

editSelectionModel (Optional[QItemSelectionModel])

setFeatureSelectionModel(self, featureSelectionModel: QgsFeatureSelectionModel | None)[source]
Parameters:

featureSelectionModel (Optional[QgsFeatureSelectionModel])