Class: QgsAttributeEditorQmlElement

class qgis.core.QgsAttributeEditorQmlElement(name: str, parent: QgsAttributeEditorElement)

Bases: QgsAttributeEditorElement

Creates a new element which can display QML

Parameters

QgsAttributeEditorQmlElement(QgsAttributeEditorQmlElement)

An attribute editor widget that will represent arbitrary QML code.

Methods

clone

param parent

qmlCode

The QML code that will be represented within this widget.

setQmlCode

Sets the QML code that will be represented within this widget to qmlCode.

clone(self, parent: QgsAttributeEditorElement) → QgsAttributeEditorElement
Parameters

parent (QgsAttributeEditorElement) –

Return type

QgsAttributeEditorElement

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) –