Class: QgsTextAnnotation¶
-
class
qgis.core.
QgsTextAnnotation
(parent: QObject = None)¶ Bases:
qgis._core.QgsAnnotation
Constructor for QgsTextAnnotation.
An annotation item that displays formatted text from a QTextDocument document.
New in version 3.0: Enums
Methods
Returns a new QgsTextAnnotation object.
Returns the text document which will be rendered within the annotation.
Sets the text document which will be rendered within the annotation.
Signals
Attributes
-
childEvent
()¶
-
clone
(self) → QgsTextAnnotation¶
-
connectNotify
()¶
-
copyCommonProperties
()¶
-
create
() → QgsTextAnnotation¶ Returns a new QgsTextAnnotation object.
-
customEvent
()¶
-
disconnectNotify
()¶
-
document
(self) → QTextDocument¶ Returns the text document which will be rendered within the annotation.
See also
-
isSignalConnected
()¶
-
minimumFrameSize
()¶
-
readXml
(self, itemElem: QDomElement, context: QgsReadWriteContext)¶
-
receivers
()¶
-
renderAnnotation
(self, context: QgsRenderContext, size: QSizeF)¶
-
sender
()¶
-
senderSignalIndex
()¶
-
setDocument
(self, doc: QTextDocument)¶ Sets the text document which will be rendered within the annotation. Ownership is not transferred.
See also
-
timerEvent
()¶
-
writeXml
(self, elem: QDomElement, doc: QDomDocument, context: QgsReadWriteContext)¶
-