Class: QgsSvgAnnotation

class qgis.core.QgsSvgAnnotation(parent: QObject = None)

Bases: qgis._core.QgsAnnotation

Constructor for QgsSvgAnnotation.

An annotation which renders the contents of an SVG file.

New in version 3.0: Enums

Methods

childEvent
clone
connectNotify
copyCommonProperties
create Returns a new QgsSvgAnnotation object.
customEvent
disconnectNotify
filePath Returns the file path for the source SVG file.
isSignalConnected
minimumFrameSize
readXml
receivers
renderAnnotation
sender
senderSignalIndex
setFilePath Sets the file path for the source SVG file.
timerEvent
writeXml

Signals

Attributes

childEvent()
clone(self) → QgsSvgAnnotation
connectNotify()
copyCommonProperties()
create() → QgsSvgAnnotation

Returns a new QgsSvgAnnotation object.

customEvent()
disconnectNotify()
filePath(self) → str

Returns the file path for the source SVG file.

See also

setFilePath()

isSignalConnected()
minimumFrameSize()
readXml(self, itemElem: QDomElement, context: QgsReadWriteContext)
receivers()
renderAnnotation(self, context: QgsRenderContext, size: QSizeF)
sender()
senderSignalIndex()
setFilePath(self, file: str)

Sets the file path for the source SVG file.

See also

filePath()

timerEvent()
writeXml(self, elem: QDomElement, doc: QDomDocument, context: QgsReadWriteContext)