Class: QgsAttributeFormInterface

Interface class for custom attribute forms.

Methods

feature

Returns the current feature for the attribute form.

form

Returns the attribute form.

Virtual Methods

In PyQGIS, only methods marked as virtual can be safely overridden in a Python subclass of QgsAttributeFormInterface. See the FAQ for more details.

acceptChanges

featureChanged

initForm

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]