Class: QgsAttributeEditorQmlElement¶
- class qgis.core.QgsAttributeEditorQmlElement¶
Bases:
QgsAttributeEditorElement
An attribute editor widget that will represent arbitrary QML code.
Added in version 3.4.
QgsAttributeEditorQmlElement(name: Optional[str], parent: Optional[QgsAttributeEditorElement]) Creates a new element which can display QML
- Parameters:
name – The name of the widget
parent – The parent (used as container)
QgsAttributeEditorQmlElement(a0:
QgsAttributeEditorQmlElement
)Methods
- param parent:
The QML code that will be represented within this widget.
Sets the QML code that will be represented within this widget to
qmlCode
.- clone(self, parent: QgsAttributeEditorElement | None) QgsAttributeEditorElement | None ¶
- Parameters:
parent (Optional[QgsAttributeEditorElement])
- Return type:
Optional[QgsAttributeEditorElement]
- qmlCode(self) str ¶
The QML code that will be represented within this widget.
Added in version 3.4.
- Return type:
str
- setQmlCode(self, qmlCode: str | None)¶
Sets the QML code that will be represented within this widget to
qmlCode
.- Parameters:
qmlCode (Optional[str])