Class: QgsQmlWidgetWrapper

class qgis.gui.QgsQmlWidgetWrapper(layer: QgsVectorLayer, editor: QWidget, parent: QWidget)

Bases: QgsWidgetWrapper

Create a qml widget wrapper

Parameters
  • layer (QgsVectorLayer) – The layer on which the feature is

  • editor (QWidget) – An editor widget. Can be None if one should be autogenerated.

  • parent (QWidget) – A parent widget

Wraps a QQuickWidget to display QML code

Methods

childEvent

connectNotify

createWidget

param parent

customEvent

disconnectNotify

initWidget

param editor

isSignalConnected

receivers

reinitWidget

Clears the content and makes new initialization

sender

senderSignalIndex

setFeature

param feature

setQmlCode

writes the qmlCode into a temporary file

timerEvent

valid

rtype

bool

childEvent()
connectNotify()
createWidget(self, parent: QWidget) → QWidget
Parameters

parent (QWidget) –

Return type

QWidget

customEvent()
disconnectNotify()
initWidget(self, editor: QWidget)
Parameters

editor (QWidget) –

isSignalConnected()
receivers()
reinitWidget(self)

Clears the content and makes new initialization

sender()
senderSignalIndex()
setFeature(self, feature: QgsFeature)
Parameters

feature (QgsFeature) –

setQmlCode(self, qmlCode: str)

writes the qmlCode into a temporary file

Parameters

qmlCode (str) –

timerEvent()
valid(self) → bool
Return type

bool