Class: QgsQmlWidgetWrapper

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

Bases: qgis._gui.QgsWidgetWrapper

Create a qml widget wrapper

Parameters:
  • layer – The layer on which the feature is
  • editor – An editor widget. Can be None if one should be autogenerated.
  • parent – A parent widget

Wraps a QQuickWidget to display QML code

New in version 3.4: Enums

Methods

childEvent
connectNotify
createWidget
customEvent
disconnectNotify
initWidget
isSignalConnected
receivers
reinitWidget Clears the content and makes new initialization
sender
senderSignalIndex
setFeature
setQmlCode writes the qmlCode into a temporary file
timerEvent
valid

Signals

Attributes

childEvent()
connectNotify()
createWidget(self, parent: QWidget) → QWidget
customEvent()
disconnectNotify()
initWidget(self, editor: QWidget)
isSignalConnected()
receivers()
reinitWidget(self)

Clears the content and makes new initialization

sender()
senderSignalIndex()
setFeature(self, feature: QgsFeature)
setQmlCode(self, qmlCode: str)

writes the qmlCode into a temporary file

timerEvent()
valid(self) → bool