Class: QgsAttributeEditorQmlElement

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

Bases: 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.

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