27 , mRelation( relation )
39 if ( mWidget && mRelation.
isValid() )
46 mWidget->setVisible( visible );
87 w->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding );
88 if ( ! editor->layout() )
90 editor->setLayout(
new QGridLayout() );
92 editor->layout()->addWidget( w );
108 w->setVisible(
false );
This class contains context information for attribute editor widgets.
When showing a list of features (e.g. houses as an embedded form in a district form) ...
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
const QgsRelation & relation() const
QgsRelationManager relationManager
const QgsAttributeEditorContext * parentContext() const
FormMode formMode() const
Returns the form mode.
static QgsProject * instance()
Returns the QgsProject singleton instance.
Q_INVOKABLE QgsRelation relation(const QString &id) const
Get access to a relation by its id.
Represents a vector layer which manages a vector based data sets.
A form was embedded as a widget on another form.