Class: QgsAttributeEditorQmlElement¶
-
class
qgis.core.
QgsAttributeEditorQmlElement
(name: str, parent: QgsAttributeEditorElement)¶ Bases:
qgis._core.QgsAttributeEditorElement
Creates a new element which can display QML
- Parameters
name – The name of the widget
parent – The parent (used as container)
QgsAttributeEditorQmlElement(QgsAttributeEditorQmlElement)
An attribute editor widget that will represent arbitrary QML code.
New in version 3.4: Enums
Methods
The QML code that will be represented within this widget.
Sets the QML code that will be represented within this widget to
qmlCode
.Signals
Attributes
-
clone
(self, parent: QgsAttributeEditorElement) → QgsAttributeEditorElement¶
-
qmlCode
(self) → str¶ The QML code that will be represented within this widget.
New in version 3.4.
-
setQmlCode
(self, qmlCode: str)¶ Sets the QML code that will be represented within this widget to
qmlCode
.