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: 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, QChildEvent)
connectNotify(self, QMetaMethod)
customEvent(self, QEvent)
disconnectNotify(self, QMetaMethod)
horizontalSpacing(self) int
Return type:

int

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

Reimplement for parent class

Parameters:
  • painter (QPainter) –

  • option (QStyleOptionViewItem) –

  • index (QModelIndex) –

receivers(self, PYQT_SIGNAL) int
sender(self) QObject
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, QTimerEvent)
verticalSpacing(self) int
Return type:

int