QgsAttributeFormRelationEditorWidget class

Widget to show for child relations on an attribute form.

Base classes

class QgsAttributeFormWidget
Base class for all widgets shown on a QgsAttributeForm.

Constructors, destructors, conversion operators

QgsAttributeFormRelationEditorWidget(QgsRelationWidgetWrapper* wrapper, QgsAttributeForm* form) explicit
Constructor.

Public functions

void createSearchWidgetWrappers(const QgsAttributeEditorContext& context = QgsAttributeEditorContext()) override
Creates the search widget wrappers for the widget used when the form is in search mode.
auto currentFilterExpression() const -> QString override
Creates an expression matching the current search filter value and search properties represented in the widget.

Function documentation

void QgsAttributeFormRelationEditorWidget::createSearchWidgetWrappers(const QgsAttributeEditorContext& context = QgsAttributeEditorContext()) override

Creates the search widget wrappers for the widget used when the form is in search mode.

Parameters
context editor context (not available in Python bindings)

QString QgsAttributeFormRelationEditorWidget::currentFilterExpression() const override

Creates an expression matching the current search filter value and search properties represented in the widget.