Class: QgsAttributeEditorHtmlElement¶
-
class
qgis.core.
QgsAttributeEditorHtmlElement
(name: str, parent: QgsAttributeEditorElement)¶ Bases:
qgis._core.QgsAttributeEditorElement
Creates a new element which can display HTML
- Parameters
name – The name of the widget
parent – The parent (used as container)
QgsAttributeEditorHtmlElement(QgsAttributeEditorHtmlElement)
An attribute editor widget that will represent arbitrary HTML code.
New in version 3.8: Enums
Methods
The QML code that will be represented within this widget.
Sets the HTML code that will be represented within this widget to
htmlCode
.Signals
Attributes
-
clone
(self, parent: QgsAttributeEditorElement) → QgsAttributeEditorElement¶
-
htmlCode
(self) → str¶ The QML code that will be represented within this widget.
New in version 3.4.
-
setHtmlCode
(self, htmlCode: str)¶ Sets the HTML code that will be represented within this widget to
htmlCode
.