26 , mRelation( relation )
38 if ( mWidget && mRelation.
isValid() )
45 mWidget->setVisible( visible );
48 void QgsRelationWidgetWrapper::aboutToSave()
114 w->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding );
115 if ( ! editor->layout() )
117 editor->setLayout(
new QGridLayout() );
119 editor->layout()->addWidget( w );
135 w->setVisible(
false );
This class contains context information for attribute editor widgets.
QgsVectorLayer referencingLayer
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...
Q_INVOKABLE QgsRelation relation(const QString &id) const
Gets access to a relation by its id.
virtual bool isModified() const
Returns true if the provider has been modified since the last commit.
QgsVectorLayer referencedLayer
QgsRelationManager relationManager
FormMode formMode() const
Returns the form mode.
const QgsRelation & relation() const
Returns the attribute relation.
static QgsProject * instance()
Returns the QgsProject singleton instance.
const QgsAttributeEditorContext * parentContext() const
Represents a vector layer which manages a vector based data sets.
A form was embedded as a widget on another form.