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
Clears the content and makes new initialization
writes the
qmlCode
into a temporary fileSignals
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¶