Class: QgsFieldDomainWidget¶
A widget for configuration of the properties of a
QgsFieldDomain.
Added in version 3.26.
Class Hierarchy¶
Base classes¶
Methods
Creates a new field domain using the properties from the widget. |
|
Returns |
|
Sets the current field domain to show properties for in the widget. |
Signals
Emitted whenever the validity of the field domain configuration in the widget changes. |
- class qgis.gui.QgsFieldDomainWidget[source]¶
Bases:
QWidget- __init__(type: Qgis.FieldDomainType, parent: QWidget | None = None)
Constructor for QgsFieldDomainWidget for the given domain
type, with the specifiedparentwidget.- Parameters:
type (Qgis.FieldDomainType)
parent (Optional[QWidget] = None)
- createFieldDomain(self) QgsFieldDomain | None[source]¶
Creates a new field domain using the properties from the widget.
Caller takes ownership of the returned object.
See also
- Return type:
Optional[QgsFieldDomain]
- isValid(self) bool[source]¶
Returns
Trueif the widget currently represents a valid field domain configuration.See also
- Return type:
bool
- setFieldDomain(self, domain: QgsFieldDomain | None)[source]¶
Sets the current field domain to show properties for in the widget.
See also
- Parameters:
domain (Optional[QgsFieldDomain])