Class: QgsFieldDomainsItem

Contains a collection of field domain items.

Added in version 3.26.

Class Hierarchy

Inheritance diagram of qgis.core.QgsFieldDomainsItem

Base classes

QgsDataItem

Base class for all items in the model.

QObject

Methods

connectionUri

Returns the connection URI

class qgis.core.QgsFieldDomainsItem[source]

Bases: QgsDataItem

__init__(parent: QgsDataItem | None, path: str | None, connectionUri: str | None, providerKey: str | None)

Constructor for QgsFieldDomainsItem, with the specified parent item.

The path argument gives the item path in the browser tree. The path string can take any form, but QgsDataItem items pointing to different logical locations should always use a different item path. The connectionUri argument is the connection part of the layer URI that it is used internally to create a connection and retrieve fields information. The providerKey string can be used to specify the key for the QgsDataItemProvider that created this item.

Parameters:
  • parent (Optional[QgsDataItem])

  • path (Optional[str])

  • connectionUri (Optional[str])

  • providerKey (Optional[str])

connectionUri(self) str[source]

Returns the connection URI

Return type:

str