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...
const QgsRelation & relation() const
Returns the attribute relation.
QgsVectorLayer referencedLayer
QgsRelationManager relationManager
const QgsAttributeEditorContext * parentContext() const
FormMode formMode() const
Returns the form mode.
static QgsProject * instance()
Returns the QgsProject singleton instance.
virtual bool isModified() const
Returns true if the provider has been modified since the last commit.
Q_INVOKABLE QgsRelation relation(const QString &id) const
Gets 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.