Class: QgsFeatureListViewDelegate

Class Hierarchy

Inheritance diagram of qgis.gui.QgsFeatureListViewDelegate

Base classes

QItemDelegate

QAbstractItemDelegate

QObject

Methods

positionToElement

setCurrentFeatureEdited

setEditSelectionModel

setFeatureSelectionModel

Signals

editButtonClicked

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

Attributes

EditElement

ICON_SIZE

SelectionElement

class qgis.gui.QgsFeatureListViewDelegate(listModel: QgsFeatureListModel | None, parent: QObject | None = None)[source]

Bases: QItemDelegate

EditElement = 0
class Element

Bases: int

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])