Subgroup: Attribute

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 Return the index of the field

Signals

Attributes

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

Return the index of the field

Returns: