Subgroup: Attribute

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: Methods

clone
qmlCode The QML code that will be represented within this widget.
setQmlCode The QML code that will be represented within this widget.

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)

The QML code that will be represented within this widget.

@param qmlCode