Class: QgsAttributeEditorHtmlElement

class qgis.core.QgsAttributeEditorHtmlElement(name: str, parent: QgsAttributeEditorElement)

Bases: 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:

Methods

clone

param parent

htmlCode

The QML code that will be represented within this widget.

setHtmlCode

Sets the HTML code that will be represented within this widget to htmlCode.

clone(self, parent: QgsAttributeEditorElement) QgsAttributeEditorElement
Parameters

parent (QgsAttributeEditorElement) –

Return type

QgsAttributeEditorElement

htmlCode(self) str

The QML code that will be represented within this widget.

New in version 3.4.

Return type

str

setHtmlCode(self, htmlCode: str)

Sets the HTML code that will be represented within this widget to htmlCode.

Parameters

htmlCode (str) –