Class: QgsAttributeFormInterface

Interface class for custom attribute forms.

class qgis.gui.QgsAttributeFormInterface[source]

Bases: object

virtual acceptChanges(self, feature: QgsFeature) bool[source]
Parameters:

feature (QgsFeature)

Return type:

bool

feature(self) QgsFeature

Returns the current feature for the attribute form.

Return type:

QgsFeature

virtual featureChanged(self)[source]
form(self) QgsAttributeForm | None[source]

Returns the attribute form.

Return type:

Optional[QgsAttributeForm]

virtual initForm(self)[source]