QGIS API Documentation 3.34.0-Prizren (ffbdd678812)
Loading...
Searching...
No Matches
Signals | Public Member Functions | List of all members
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:
Inheritance graph
[legend]

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.
 
virtual ~QgsAbstractFieldDomainWidget ()
 
virtual QgsFieldDomaincreateFieldDomain (const QString &name, const QString &description, QVariant::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 42 of file qgsfielddomainwidget.h.

Constructor & Destructor Documentation

◆ QgsAbstractFieldDomainWidget()

QgsAbstractFieldDomainWidget::QgsAbstractFieldDomainWidget ( QWidget *  parent = nullptr)

Constructor for QgsAbstractFieldDomainWidget, with the specified parent widget.

Definition at line 27 of file qgsfielddomainwidget.cpp.

◆ ~QgsAbstractFieldDomainWidget()

QgsAbstractFieldDomainWidget::~QgsAbstractFieldDomainWidget ( )
virtualdefault

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,
QVariant::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 QgsRangeDomainWidget, QgsGlobDomainWidget, and QgsCodedFieldDomainWidget.

◆ isValid()

virtual bool QgsAbstractFieldDomainWidget::isValid ( ) const
pure virtual

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

Implemented in QgsRangeDomainWidget, QgsGlobDomainWidget, and QgsCodedFieldDomainWidget.

◆ 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 QgsRangeDomainWidget, QgsGlobDomainWidget, and QgsCodedFieldDomainWidget.


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