Class: QgsAttributeEditorField

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

Bases: qgis._core.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
idx Returns the index of the field.

Signals

Attributes

clone(self, parent: QgsAttributeEditorElement) → QgsAttributeEditorElement
idx(self) → int

Returns the index of the field.