Class: QgsDetailedItemDelegate

class qgis.gui.QgsDetailedItemDelegate

Bases: PyQt5.QtWidgets.QAbstractItemDelegate

A custom model/view delegate that can display an icon, heading and detail sections.

QgsDetailedItemDelegate(parent: Optional[QObject] = None) Constructor for QgsDetailedItemDelegate

Methods

childEvent

connectNotify

customEvent

disconnectNotify

horizontalSpacing

rtype:

int

isSignalConnected

paint

Reimplement for parent class

receivers

sender

senderSignalIndex

setHorizontalSpacing

param value:

setVerticalSpacing

param value:

sizeHint

Reimplement for parent class

timerEvent

verticalSpacing

rtype:

int

childEvent(self, a0: QChildEvent | None)
connectNotify(self, signal: QMetaMethod)
customEvent(self, a0: QEvent | None)
disconnectNotify(self, signal: QMetaMethod)
horizontalSpacing(self) int
Return type:

int

isSignalConnected(self, signal: QMetaMethod) bool
paint(self, painter: QPainter | None, option: QStyleOptionViewItem, index: QModelIndex)

Reimplement for parent class

Parameters:
  • painter (Optional[QPainter])

  • option (QStyleOptionViewItem)

  • index (QModelIndex)

receivers(self, signal: PYQT_SIGNAL) int
sender(self) QObject | None
senderSignalIndex(self) int
setHorizontalSpacing(self, value: int)
Parameters:

value (int)

setVerticalSpacing(self, value: int)
Parameters:

value (int)

sizeHint(self, option: QStyleOptionViewItem, index: QModelIndex) QSize

Reimplement for parent class

Parameters:
  • option (QStyleOptionViewItem)

  • index (QModelIndex)

Return type:

QSize

timerEvent(self, a0: QTimerEvent | None)
verticalSpacing(self) int
Return type:

int