Class: QgsAttributeEditorField

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

List of all members, including inherited members

Class Hierarchy

Inheritance diagram of qgis.core.QgsAttributeEditorField

Base classes

QgsAttributeEditorElement

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

Constructor

__init__

Abstract Methods

clone

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 (str|None) – The name of the element

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

  • parent (QgsAttributeEditorElement|None) – The parent of this widget (used as container)

__init__(a0: QgsAttributeEditorField)
Parameters:

a0 (QgsAttributeEditorField)

abstract clone(self, parent: QgsAttributeEditorElement | None) → QgsAttributeEditorElement | None[source]
Parameters:

parent (QgsAttributeEditorElement|None)

Return type:

QgsAttributeEditorElement|None

idx(self) → int[source]

Returns the index of the field.

Return type:

int