Class: QgsAttributeEditorQmlElement¶
- class qgis.core.QgsAttributeEditorQmlElement¶
Bases:
QgsAttributeEditorElement
An attribute editor widget that will represent arbitrary QML code.
New in version 3.4.
QgsAttributeEditorQmlElement(name: str, parent:
QgsAttributeEditorElement
) Creates a new element which can display QML- Parameters:
name – The name of the widget
parent – The parent (used as container)
QgsAttributeEditorQmlElement(
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) QgsAttributeEditorElement ¶
- Parameters:
parent (QgsAttributeEditorElement) –
- Return type:
- qmlCode(self) str ¶
The QML code that will be represented within this widget.
New in version 3.4.
- Return type:
str
- setQmlCode(self, qmlCode: str)¶
Sets the QML code that will be represented within this widget to
qmlCode
.- Parameters:
qmlCode (str) –