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(self, QChildEvent)
connectNotify(self, QMetaMethod)
customEvent(self, QEvent)
disconnectNotify(self, QMetaMethod)
drawBackground(self, QPainter, QStyleOptionViewItem, QModelIndex)
drawCheck(self, QPainter, QStyleOptionViewItem, QRect, Qt.CheckState)
drawDecoration(self, QPainter, QStyleOptionViewItem, QRect, QPixmap)
drawDisplay(self, QPainter, QStyleOptionViewItem, QRect, str)
drawFocus(self, QPainter, QStyleOptionViewItem, QRect)
editButtonClicked

editButtonClicked(self, index: QModelIndex) [signal]

Parameters

index (QModelIndex) –

editorEvent(self, QEvent, QAbstractItemModel, QStyleOptionViewItem, QModelIndex) → bool
eventFilter(self, QObject, QEvent) → bool
isSignalConnected(self, QMetaMethod) → bool
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(self, PYQT_SIGNAL) → int
sender(self) → QObject
senderSignalIndex(self) → int
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(self, QTimerEvent)