Class: QgsFieldDomainDialog

A dialog for configuration of the properties of a QgsFieldDomain.

Added in version 3.26.

List of all members, including inherited members

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.

setNameEditable

Sets if name of the field domain is editable

setPoliciesEditable

Sets if merge and split policies are editable.

class qgis.gui.QgsFieldDomainDialog[source]

Bases: QDialog

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

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

Parameters:
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])

setNameEditable(self, editable: bool)[source]

Sets if name of the field domain is editable

Added in version 4.0.

Parameters:

editable (bool)

setPoliciesEditable(self, editable: bool)[source]

Sets if merge and split policies are editable.

Added in version 4.0.

Parameters:

editable (bool)