Class: QgsSvgAnnotation¶
-
class
qgis.core.
QgsSvgAnnotation
(parent: QObject = None)¶ Bases:
QgsAnnotation
Constructor for QgsSvgAnnotation.
An annotation which renders the contents of an SVG file.
New in version 3.0.
- Parameters
parent –
-
childEvent
()¶
-
clone
(self) → QgsSvgAnnotation¶ - Return type
-
connectNotify
()¶
-
copyCommonProperties
()¶
-
create
() → QgsSvgAnnotation¶ Returns a new
QgsSvgAnnotation
object.- Return type
-
customEvent
()¶
-
disconnectNotify
()¶
-
filePath
(self) → str¶ Returns the file path for the source SVG file.
See also
- Return type
str
-
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
()¶
-
setFilePath
(self, file: str)¶ Sets the file path for the source SVG file.
See also
- Parameters
file (str) –
-
timerEvent
()¶
-
writeXml
(self, elem: QDomElement, doc: QDomDocument, context: QgsReadWriteContext)¶ - Parameters
elem (QDomElement) –
doc (QDomDocument) –
context (QgsReadWriteContext) –