Class: QgsHtmlWidgetWrapper¶
- class qgis.gui.QgsHtmlWidgetWrapper¶
Bases:
QgsWidgetWrapper
Wraps a QQuickWidget to display HTML code
New in version 3.4.
QgsHtmlWidgetWrapper(layer:
QgsVectorLayer
, editor: QWidget, parent: QWidget) Create a html 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
Returns true if the widget needs feature geometry
Clears the content and makes new initialization
- param feature
Sets the HTML code to
htmlCode
- 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 ¶
- needsGeometry(self) bool ¶
Returns true if the widget needs feature geometry
New in version 3.20.
- Return type
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) –
- setHtmlCode(self, htmlCode: str)¶
Sets the HTML code to
htmlCode
- Parameters
htmlCode (str) –
- timerEvent(self, QTimerEvent)¶
- valid(self) bool ¶
- Return type
bool