Class: QgsQmlWidgetWrapper¶
- class qgis.gui.QgsQmlWidgetWrapper¶
Bases:
QgsWidgetWrapper
Wraps a QQuickWidget to display QML code
Added in version 3.4.
QgsQmlWidgetWrapper(layer: Optional[QgsVectorLayer], editor: Optional[QWidget], parent: Optional[QWidget]) 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
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, a0: QChildEvent | None)¶
- connectNotify(self, signal: QMetaMethod)¶
- createWidget(self, parent: QWidget | None) QWidget | None ¶
- Parameters:
parent (Optional[QWidget])
- Return type:
Optional[QWidget]
- customEvent(self, a0: QEvent | None)¶
- disconnectNotify(self, signal: QMetaMethod)¶
- initWidget(self, editor: QWidget | None)¶
- Parameters:
editor (Optional[QWidget])
- isSignalConnected(self, signal: QMetaMethod) bool ¶
- receivers(self, signal: PYQT_SIGNAL) int ¶
- reinitWidget(self)¶
Clears the content and makes new initialization
- sender(self) QObject | None ¶
- senderSignalIndex(self) int ¶
- setFeature(self, feature: QgsFeature)¶
- Parameters:
feature (QgsFeature)
- setQmlCode(self, qmlCode: str | None)¶
writes the
qmlCode
into a temporary file- Parameters:
qmlCode (Optional[str])
- timerEvent(self, a0: QTimerEvent | None)¶
- valid(self) bool ¶
- Return type:
bool