Class: QgsHtmlAnnotation¶
An annotation item that embeds HTML content.
Class Hierarchy¶
Base classes¶
Abstract base class for annotation items which are drawn over a map.  | 
|
Methods
Returns html source text  | 
|
Sets the html source directly (not coming from a file)  | 
|
Sets the file path for the source HTML file.  | 
|
Returns the file path for the source HTML file.  | 
Static Methods
Returns a new   | 
- class qgis.core.QgsHtmlAnnotation[source]¶
 Bases:
QgsAnnotation- __init__(parent: QObject | None = None)
 Constructor for QgsHtmlAnnotation.
- Parameters:
 parent (Optional[QObject] = None)
- static create() QgsHtmlAnnotation | None[source]¶
 Returns a new
QgsHtmlAnnotationobject.- Return type:
 Optional[QgsHtmlAnnotation]
- setHtmlSource(self, htmlSource: str | None)[source]¶
 Sets the html source directly (not coming from a file)
- Parameters:
 htmlSource (Optional[str])
- setSourceFile(self, htmlFile: str | None)[source]¶
 Sets the file path for the source HTML file.
See also
- Parameters:
 htmlFile (Optional[str])