Class: QgsTextAnnotation¶
An annotation item that displays formatted text from a QTextDocument document.
Class Hierarchy¶
Base classes¶
Abstract base class for annotation items which are drawn over a map.  | 
|
Methods
Returns the text document which will be rendered within the annotation.  | 
|
Sets the text document which will be rendered within the annotation.  | 
Static Methods
Returns a new   | 
- class qgis.core.QgsTextAnnotation[source]¶
 Bases:
QgsAnnotation- __init__(parent: QObject | None = None)
 Constructor for QgsTextAnnotation.
- Parameters:
 parent (Optional[QObject] = None)
- static create() QgsTextAnnotation | None[source]¶
 Returns a new
QgsTextAnnotationobject.- Return type:
 Optional[QgsTextAnnotation]
- document(self) QTextDocument | None[source]¶
 Returns the text document which will be rendered within the annotation.
See also
- Return type:
 Optional[QTextDocument]