QGIS API Documentation 3.41.0-Master (cea29feecf2)
Loading...
Searching...
No Matches
Public Member Functions | List of all members
QgsRelationEditorWidgetFactory Class Reference

Factory class for creating a relation editor widget and the respective config widget. More...

#include <qgsrelationeditorwidget.h>

Inheritance diagram for QgsRelationEditorWidgetFactory:
Inheritance graph
[legend]

Public Member Functions

 QgsRelationEditorWidgetFactory ()
 
QgsAbstractRelationEditorConfigWidgetconfigWidget (const QgsRelation &relation, QWidget *parent) const override
 Override this in your implementation.
 
QgsAbstractRelationEditorWidgetcreate (const QVariantMap &config, QWidget *parent=nullptr) const override
 Override this in your implementation.
 
QString name () const override
 Returns the human readable identifier name of this widget type.
 
QString type () const override
 Returns the machine readable identifier name of this widget type.
 
- Public Member Functions inherited from QgsAbstractRelationEditorWidgetFactory
 QgsAbstractRelationEditorWidgetFactory ()
 Creates a new relation widget factory with given name.
 
virtual ~QgsAbstractRelationEditorWidgetFactory ()=default
 

Detailed Description

Factory class for creating a relation editor widget and the respective config widget.

Note
not available in Python bindings
Since
QGIS 3.18

Definition at line 322 of file qgsrelationeditorwidget.h.

Constructor & Destructor Documentation

◆ QgsRelationEditorWidgetFactory()

QgsRelationEditorWidgetFactory::QgsRelationEditorWidgetFactory ( )

Definition at line 1038 of file qgsrelationeditorwidget.cpp.

Member Function Documentation

◆ configWidget()

QgsAbstractRelationEditorConfigWidget * QgsRelationEditorWidgetFactory::configWidget ( const QgsRelation relation,
QWidget *  parent 
) const
overridevirtual

Override this in your implementation.

Create a new configuration widget for this widget type.

Parameters
relationThe relation for which the widget will be created
parentThe parent widget of the created config widget
Returns
A configuration widget

Implements QgsAbstractRelationEditorWidgetFactory.

Definition at line 1057 of file qgsrelationeditorwidget.cpp.

◆ create()

QgsAbstractRelationEditorWidget * QgsRelationEditorWidgetFactory::create ( const QVariantMap &  config,
QWidget *  parent = nullptr 
) const
overridevirtual

Override this in your implementation.

Create a new relation widget. Call QgsEditorWidgetRegistry::create() instead of calling this method directly.

Parameters
configThe widget configuration to build the widget with
parentThe parent for the wrapper class and any created widget.
Returns
A new widget wrapper

Implements QgsAbstractRelationEditorWidgetFactory.

Definition at line 1052 of file qgsrelationeditorwidget.cpp.

◆ name()

QString QgsRelationEditorWidgetFactory::name ( ) const
overridevirtual

Returns the human readable identifier name of this widget type.

Implements QgsAbstractRelationEditorWidgetFactory.

Definition at line 1047 of file qgsrelationeditorwidget.cpp.

◆ type()

QString QgsRelationEditorWidgetFactory::type ( ) const
overridevirtual

Returns the machine readable identifier name of this widget type.

Implements QgsAbstractRelationEditorWidgetFactory.

Definition at line 1042 of file qgsrelationeditorwidget.cpp.


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