Class: QgsAttributeEditorField

class qgis.core.QgsAttributeEditorField(name: str, idx: int, parent: QgsAttributeEditorElement)

Bases: 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)

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

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