Class: QgsFeatureListViewDelegate

class qgis.gui.QgsFeatureListViewDelegate(listModel: QgsFeatureListModel, parent: QObject = None)

Bases: PyQt5.QtWidgets.QItemDelegate

Parameters
EditElement = 0
class Element

Bases: int

ICON_SIZE = 24
SelectionElement = 1
childEvent()
connectNotify()
customEvent()
disconnectNotify()
drawBackground()
drawCheck()
drawDecoration()
drawDisplay()
drawFocus()
editButtonClicked

editButtonClicked(self, index: QModelIndex) [signal]

Parameters

index (QModelIndex) –

editorEvent()
eventFilter()
isSignalConnected()
paint(self, painter: QPainter, option: QStyleOptionViewItem, index: QModelIndex)
Parameters
  • painter (QPainter) –

  • option (QStyleOptionViewItem) –

  • index (QModelIndex) –

positionToElement(self, pos: QPoint) → QgsFeatureListViewDelegate.Element
Parameters

pos (QPoint) –

Return type

QgsFeatureListViewDelegate.Element

receivers()
sender()
senderSignalIndex()
setCurrentFeatureEdited(self, state: bool)
Parameters

state (bool) –

setEditSelectionModel(self, editSelectionModel: QItemSelectionModel)
Parameters

editSelectionModel (QItemSelectionModel) –

setFeatureSelectionModel(self, featureSelectionModel: QgsFeatureSelectionModel)
Parameters

featureSelectionModel (QgsFeatureSelectionModel) –

sizeHint(self, option: QStyleOptionViewItem, index: QModelIndex) → QSize
Parameters
  • option (QStyleOptionViewItem) –

  • index (QModelIndex) –

Return type

QSize

timerEvent()