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

The QML code that will be represented within this widget.

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)

The QML code that will be represented within this widget.

@param qmlCode

Parameters

qmlCode (str) –