Class: QgsAttributeEditorHtmlElement

An attribute editor widget that will represent arbitrary HTML code.

Added in version 3.4.

List of all members, including inherited members

Class Hierarchy

Inheritance diagram of qgis.core.QgsAttributeEditorHtmlElement

Base classes

QgsAttributeEditorElement

An abstract base class for any elements of a drag and drop form.

Methods

htmlCode

The Html code that will be represented within this widget.

setHtmlCode

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

class qgis.core.QgsAttributeEditorHtmlElement[source]

Bases: QgsAttributeEditorElement

__init__(name: str | None, parent: QgsAttributeEditorElement | None)

Creates a new element which can display HTML

Parameters:
__init__(a0: QgsAttributeEditorHtmlElement)
Parameters:

a0 (QgsAttributeEditorHtmlElement)

htmlCode(self) str[source]

The Html code that will be represented within this widget.

Added in version 3.4.

Return type:

str

setHtmlCode(self, htmlCode: str | None)[source]

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

Parameters:

htmlCode (Optional[str])