Class: QgsAttributeEditorField

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

Class Hierarchy

Inheritance diagram of qgis.core.QgsAttributeEditorField

Base classes

QgsAttributeEditorElement

An abstract base class for any elements of a drag and drop form.

Methods

idx

Returns the index of the field.

class qgis.core.QgsAttributeEditorField[source]

Bases: QgsAttributeEditorElement

__init__(name: str | None, idx: int, parent: QgsAttributeEditorElement | None)

Creates a new attribute editor element which represents a field

Parameters:
  • name (Optional[str]) – The name of the element

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

  • parent (Optional[QgsAttributeEditorElement]) – The parent of this widget (used as container)

__init__(a0: QgsAttributeEditorField)
Parameters:

a0 (QgsAttributeEditorField)

idx(self) int[source]

Returns the index of the field.

Return type:

int