Class: QgsQmlWidgetWrapper¶
- class qgis.gui.QgsQmlWidgetWrapper(layer: QgsVectorLayer, editor: QWidget, parent: QWidget)¶
Bases:
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
Methods
- param parent
- param editor
Clears the content and makes new initialization
- param feature
writes the
qmlCode
into a temporary file- rtype
bool
- childEvent(self, QChildEvent)¶
- connectNotify(self, QMetaMethod)¶
- createWidget(self, parent: QWidget) → QWidget¶
- Parameters
parent (QWidget) –
- Return type
QWidget
- customEvent(self, QEvent)¶
- disconnectNotify(self, QMetaMethod)¶
- initWidget(self, editor: QWidget)¶
- Parameters
editor (QWidget) –
- isSignalConnected(self, QMetaMethod) → bool¶
- receivers(self, PYQT_SIGNAL) → int¶
- reinitWidget(self)¶
Clears the content and makes new initialization
- sender(self) → QObject¶
- senderSignalIndex(self) → int¶
- setFeature(self, feature: QgsFeature)¶
- Parameters
feature (QgsFeature) –
- setQmlCode(self, qmlCode: str)¶
writes the
qmlCode
into a temporary file- Parameters
qmlCode (str) –
- timerEvent(self, QTimerEvent)¶
- valid(self) → bool¶
- Return type
bool