Class: QgsFeatureListViewDelegate¶
- class qgis.gui.QgsFeatureListViewDelegate(listModel: QgsFeatureListModel, parent: QObject = None)¶
Bases:
PyQt5.QtWidgets.QItemDelegate
Methods
- param painter:
- param pos:
- param state:
- param editSelectionModel:
- param featureSelectionModel:
- param option:
Signals
pyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
Attributes
- 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¶
pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Parameters:
name (str = ...) –
revision (int = ...) –
arguments (Sequence = ...) –
- Return type:
PYQT_SIGNAL
- 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:
- 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)¶