Class: QgsFieldDomainItem

class qgis.core.QgsFieldDomainItem

Bases: QgsDataItem

A browser item representing a field domain.

New in version 3.26.

QgsFieldDomainItem(parent: QgsDataItem, domain: QgsFieldDomain) Constructor for QgsFieldDomainItem, with the specified parent item and domain.

Ownership of domain is transferred to the item.

Note

parent item must be a QgsFieldDomainsItem.

Methods

childEvent

connectNotify

customEvent

deferredDelete

The item is scheduled to be deleted.

disconnectNotify

fieldDomain

Returns the associated field domain.

icon

rtype:

QIcon

isSignalConnected

populate

receivers

refresh

Refresh the items from a specified list of child items.

sender

senderSignalIndex

timerEvent

updateIcon

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), the deferredDelete() returns True and item will be deleted once Populating finished. Items with slow reateChildren() (for example network or database based) may check during createChildren() if deferredDelete() returns True and return from createChildren() immediately because result will be useless.

disconnectNotify(self, QMetaMethod)
fieldDomain(self) QgsFieldDomain

Returns the associated field domain.

Return type:

QgsFieldDomain

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)

sender(self) QObject
senderSignalIndex(self) int
timerEvent(self, QTimerEvent)
updateIcon(self)

Will request a repaint of this icon.