| 
    QGIS API Documentation
    3.14.0-Pi (9f7028fd23)
    
   | 
 
 
 
 
Go to the documentation of this file.
   26   , mRelation( relation )
 
   42   if ( mWidget && mRelation.
isValid() )
 
   49     mWidget->setVisible( visible );
 
   52 void QgsRelationWidgetWrapper::aboutToSave()
 
   87   if ( mWidget && attributeChanged )
 
   90     if ( feature.attribute( attribute ) != newValue )
 
  142     w->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding );
 
  143     if ( ! editor->layout() )
 
  145       editor->setLayout( 
new QGridLayout() );
 
  147     editor->layout()->addWidget( w );
 
  152   if ( 
config( QStringLiteral( 
"force-suppress-popup" ), 
false ).toBool() )
 
  157   if ( 
config( QStringLiteral( 
"hide-save-child-edits" ), 
false ).toBool() )
 
  173       w->setVisible( 
false );
 
  
QgsRelationManager relationManager
 
void setParentFormFeature(const QgsFeature &feature)
Sets the feature of the currently edited parent form.
 
static QgsProject * instance()
Returns the QgsProject singleton instance.
 
Q_INVOKABLE QgsRelation relation(const QString &id) const
Gets access to a relation by its id.
 
@ Embed
A form was embedded as a widget on another form.
 
const QgsRelation & relation() const
Returns the attribute relation.
 
QgsVectorLayer referencingLayer
 
QgsVectorLayer referencedLayer
 
FormMode formMode() const
Returns the form mode.
 
bool setAttribute(int field, const QVariant &attr)
Set an attribute's value by field index.
 
virtual bool isModified() const
Returns true if the provider has been modified since the last commit.
 
const QgsAttributeEditorContext * parentContext() const
 
@ Multiple
When showing a list of features (e.g. houses as an embedded form in a district form)
 
const QgsVectorLayerTools * vectorLayerTools() const
Returns the associated vector layer tools.