Class: QgsAttributeEditorField

class qgis.core.QgsAttributeEditorField

Bases: QgsAttributeEditorElement

This element will load a field’s widget onto the form.

QgsAttributeEditorField(name: Optional[str], idx: int, parent: Optional[QgsAttributeEditorElement]) Creates a new attribute editor element which represents a field

Parameters:
  • name – The name of the element

  • idx – The index of the field which should be embedded

  • parent – The parent of this widget (used as container)

QgsAttributeEditorField(a0: QgsAttributeEditorField)

Methods

clone

param parent:

idx

Returns the index of the field.

clone(self, parent: QgsAttributeEditorElement | None) QgsAttributeEditorElement | None
Parameters:

parent (Optional[QgsAttributeEditorElement])

Return type:

Optional[QgsAttributeEditorElement]

idx(self) int

Returns the index of the field.

Return type:

int