QGIS API Documentation 3.99.0-Master (26c88405ac0)
Loading...
Searching...
No Matches
QgsAbstractFieldDomainWidget Class Referenceabstract

Abstract base class for widgets which configure the extended properties of a QgsFieldDomain subclass. More...

#include <qgsfielddomainwidget.h>

Inheritance diagram for QgsAbstractFieldDomainWidget:

Signals

void changed ()
 Emitted whenever the field domain configuration in the widget changes.

Public Member Functions

 QgsAbstractFieldDomainWidget (QWidget *parent=nullptr)
 Constructor for QgsAbstractFieldDomainWidget, with the specified parent widget.
 ~QgsAbstractFieldDomainWidget () override
virtual QgsFieldDomaincreateFieldDomain (const QString &name, const QString &description, QMetaType::Type fieldType) const =0
 Creates a new field domain using the properties from the widget.
virtual bool isValid () const =0
 Returns true if the widget currently represents a valid field domain configuration.
virtual void setFieldDomain (const QgsFieldDomain *domain)=0
 Sets the current field domain to show properties for in the widget.

Detailed Description

Abstract base class for widgets which configure the extended properties of a QgsFieldDomain subclass.

See also
QgsFieldDomainWidget
Note
Not available in Python bindings
Since
QGIS 3.26

Definition at line 44 of file qgsfielddomainwidget.h.

Constructor & Destructor Documentation

◆ QgsAbstractFieldDomainWidget()

QgsAbstractFieldDomainWidget::QgsAbstractFieldDomainWidget ( QWidget * parent = nullptr)

Constructor for QgsAbstractFieldDomainWidget, with the specified parent widget.

Definition at line 31 of file qgsfielddomainwidget.cpp.

◆ ~QgsAbstractFieldDomainWidget()

QgsAbstractFieldDomainWidget::~QgsAbstractFieldDomainWidget ( )
overridedefault

Member Function Documentation

◆ changed

void QgsAbstractFieldDomainWidget::changed ( )
signal

Emitted whenever the field domain configuration in the widget changes.

◆ createFieldDomain()

virtual QgsFieldDomain * QgsAbstractFieldDomainWidget::createFieldDomain ( const QString & name,
const QString & description,
QMetaType::Type fieldType ) const
pure virtual

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

Caller takes ownership of the returned object.

See also
setFieldDomain()

Implemented in QgsCodedFieldDomainWidget, QgsGlobDomainWidget, and QgsRangeDomainWidget.

◆ isValid()

virtual bool QgsAbstractFieldDomainWidget::isValid ( ) const
pure virtual

Returns true if the widget currently represents a valid field domain configuration.

Implemented in QgsCodedFieldDomainWidget, QgsGlobDomainWidget, and QgsRangeDomainWidget.

◆ setFieldDomain()

virtual void QgsAbstractFieldDomainWidget::setFieldDomain ( const QgsFieldDomain * domain)
pure virtual

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

See also
createFieldDomain()

Implemented in QgsCodedFieldDomainWidget, QgsGlobDomainWidget, and QgsRangeDomainWidget.


The documentation for this class was generated from the following files: