Class: QgsAttributeEditorField

class qgis.core.QgsAttributeEditorField

Bases: QgsAttributeEditorElement

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

QgsAttributeEditorField(name: str, idx: int, parent: 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(QgsAttributeEditorField)

Methods

clone

param parent:

idx

Returns the index of the field.

clone(self, parent: QgsAttributeEditorElement) QgsAttributeEditorElement
Parameters:

parent (QgsAttributeEditorElement) –

Return type:

QgsAttributeEditorElement

idx(self) int

Returns the index of the field.

Return type:

int