Class: QgsTextAnnotation¶
-
class
qgis.core.
QgsTextAnnotation
(parent: QObject = None)¶ Bases:
QgsAnnotation
Constructor for QgsTextAnnotation.
An annotation item that displays formatted text from a QTextDocument document.
New in version 3.0.
- Parameters
parent –
-
childEvent
()¶
-
clone
(self) → QgsTextAnnotation¶ - Return type
-
connectNotify
()¶
-
copyCommonProperties
()¶
-
create
() → QgsTextAnnotation¶ Returns a new
QgsTextAnnotation
object.- Return type
-
customEvent
()¶
-
disconnectNotify
()¶
-
document
(self) → QTextDocument¶ Returns the text document which will be rendered within the annotation.
See also
- Return type
QTextDocument
-
isSignalConnected
()¶
-
minimumFrameSize
()¶
-
readXml
(self, itemElem: QDomElement, context: QgsReadWriteContext)¶ - Parameters
itemElem (QDomElement) –
context (QgsReadWriteContext) –
-
receivers
()¶
-
renderAnnotation
(self, context: QgsRenderContext, size: QSizeF)¶ - Parameters
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
- Parameters
doc (QTextDocument) –
-
timerEvent
()¶
-
writeXml
(self, elem: QDomElement, doc: QDomDocument, context: QgsReadWriteContext)¶ - Parameters
elem (QDomElement) –
doc (QDomDocument) –
context (QgsReadWriteContext) –