Class: QgsHtmlAnnotation

class qgis.core.QgsHtmlAnnotation(parent: QObject = None)

Bases: QgsAnnotation

Constructor for QgsHtmlAnnotation.

An annotation item that embeds HTML content.

New in version 3.0.

Parameters

parent

childEvent()
clone(self)QgsHtmlAnnotation
Return type

QgsHtmlAnnotation

connectNotify()
copyCommonProperties()
create()QgsHtmlAnnotation

Returns a new QgsHtmlAnnotation object.

Return type

QgsHtmlAnnotation

customEvent()
disconnectNotify()
isSignalConnected()
minimumFrameSize(self) → QSizeF
Return type

QSizeF

readXml(self, itemElem: QDomElement, context: QgsReadWriteContext)
Parameters
receivers()
renderAnnotation(self, context: QgsRenderContext, size: QSizeF)
Parameters
sender()
senderSignalIndex()
setAssociatedFeature(self, feature: QgsFeature)
Parameters

feature (QgsFeature) –

setSourceFile(self, htmlFile: str)

Sets the file path for the source HTML file.

See also

sourceFile()

Parameters

htmlFile (str) –

sourceFile(self) → str

Returns the file path for the source HTML file.

See also

setSourceFile()

Return type

str

timerEvent()
writeXml(self, elem: QDomElement, doc: QDomDocument, context: QgsReadWriteContext)
Parameters