Class: QgsTextAnnotation¶
An annotation item that displays formatted text from a QTextDocument document.
List of all members, including inherited members
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:
- document(self) QTextDocument | None[source]¶
Returns the text document which will be rendered within the annotation.
See also
- Return type:
- setDocument(self, doc: QTextDocument | None)[source]¶
Sets the text document which will be rendered within the annotation. Ownership is not transferred.
See also
- Parameters:
doc (Optional[QTextDocument])