Class: QgsRelationshipItem¶
- class qgis.core.QgsRelationshipItem¶
Bases:
QgsDataItem
A browser item representing a relationship.
Added in version 3.28.
QgsRelationshipItem(parent:
QgsDataItem
, relation:QgsWeakRelation
) Constructor forQgsRelationshipItem
, with the specifiedparent
item andrelation
.Note
parent item must be a
QgsRelationshipsItem
.Methods
The item is scheduled to be deleted.
- rtype:
QIcon
Refresh the items from a specified list of child items.
Returns the associated relationship.
Will request a repaint of this icon.
- childEvent(self, QChildEvent)¶
- connectNotify(self, QMetaMethod)¶
- customEvent(self, QEvent)¶
- deferredDelete(self) bool ¶
The item is scheduled to be deleted. E.g. if
deleteLater()
is called when item is in Populating state (createChildren()
running in another thread), thedeferredDelete()
returnsTrue
and item will be deleted once Populating finished. Items with slowreateChildren()
(for example network or database based) may check duringcreateChildren()
ifdeferredDelete()
returnsTrue
and return fromcreateChildren()
immediately because result will be useless.
- disconnectNotify(self, QMetaMethod)¶
- icon(self) QIcon ¶
- Return type:
QIcon
- isSignalConnected(self, QMetaMethod) bool ¶
- populate(self, children: Iterable[QgsDataItem])¶
- populate(self, foreground: bool = False) None
- receivers(self, PYQT_SIGNAL) int ¶
- refresh(self, children: Iterable[QgsDataItem])¶
Refresh the items from a specified list of child items.
refresh(self)
- relation(self) QgsWeakRelation ¶
Returns the associated relationship.
- Return type:
- sender(self) QObject ¶
- senderSignalIndex(self) int ¶
- timerEvent(self, QTimerEvent)¶
- updateIcon(self)¶
Will request a repaint of this icon.