27 , mRelation( relation )
39 if ( mWidget && mRelation.
isValid() )
46 mWidget->setVisible( visible );
49 void QgsRelationWidgetWrapper::aboutToSave()
98 w->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding );
99 if ( ! editor->layout() )
101 editor->setLayout(
new QGridLayout() );
103 editor->layout()->addWidget( w );
119 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.