Class: QgsDetailedItemDelegate

class qgis.gui.QgsDetailedItemDelegate

Bases: PyQt5.QtWidgets.QAbstractItemDelegate

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

See also

also()

QgsDetailedItemDelegate(parent: QObject = None) Constructor for QgsDetailedItemDelegate

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