Class: QgsAttributeEditorTextElement¶
- class qgis.core.QgsAttributeEditorTextElement¶
Bases:
QgsAttributeEditorElement
An attribute editor widget that will represent arbitrary text code.
Added 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
)- clone(self, parent: QgsAttributeEditorElement) QgsAttributeEditorElement ¶
- Parameters:
parent (QgsAttributeEditorElement)
- Return type:
- 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