Class: QgsFieldDomainDialog

A dialog for configuration of the properties of a QgsFieldDomain.

Added in version 3.26.

Class Hierarchy

Inheritance diagram of qgis.gui.QgsFieldDomainDialog

Base classes

QDialog

QWidget

QObject

QPaintDevice

Methods

createFieldDomain

Creates a new field domain using the properties from the dialog.

setFieldDomain

Sets the current field domain to show properties for in the dialog.

class qgis.gui.QgsFieldDomainDialog[source]

Bases: QDialog

__init__(type: Qgis.FieldDomainType, parent: QWidget | None = None, flags: Qt.WindowFlags | Qt.WindowType = Qt.WindowFlags())

Constructor for QgsFieldDomainDialog for the given domain type, with the specified parent widget and window flags.

Parameters:
  • type (Qgis.FieldDomainType)

  • parent (Optional[QWidget] = None)

  • flags (Union[Qt.WindowFlags, Qt.WindowType] = Qt.WindowFlags())

createFieldDomain(self) QgsFieldDomain | None[source]

Creates a new field domain using the properties from the dialog.

Caller takes ownership of the returned object.

See also

setFieldDomain()

Return type:

Optional[QgsFieldDomain]

setFieldDomain(self, domain: QgsFieldDomain | None)[source]

Sets the current field domain to show properties for in the dialog.

Parameters:

domain (Optional[QgsFieldDomain])