Class: QgsAttributeEditorTextElement

class qgis.core.QgsAttributeEditorTextElement

Bases: QgsAttributeEditorElement

An attribute editor widget that will represent arbitrary text code.

New in version 3.30.

QgsAttributeEditorTextElement(name: str, parent: QgsAttributeEditorElement) Creates a new element which can display text

Parameters:
  • name – The name of the widget

  • parent – The parent (used as container)

QgsAttributeEditorTextElement(QgsAttributeEditorTextElement)

Methods

clone

param parent:

setText

Sets the text that will be represented within this widget to text

text

The Text that will be represented within this widget.

clone(self, parent: QgsAttributeEditorElement) QgsAttributeEditorElement
Parameters:

parent (QgsAttributeEditorElement) –

Return type:

QgsAttributeEditorElement

setText(self, text: str)

Sets the text that will be represented within this widget to text

Parameters:

text (str) –

text(self) str

The Text that will be represented within this widget.

Return type:

str