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

QgsSvgAnnotation

connectNotify()
copyCommonProperties()
create() → QgsSvgAnnotation

Returns a new QgsSvgAnnotation object.

Return type

QgsSvgAnnotation

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

Returns the file path for the source SVG file.

See also

setFilePath()

Return type

str

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

Sets the file path for the source SVG file.

See also

filePath()

Parameters

file (str) –

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