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
(self, QChildEvent)¶
-
clone
(self) → QgsSvgAnnotation¶ - Return type
-
connectNotify
(self, QMetaMethod)¶
-
copyCommonProperties
(self, target: QgsAnnotation)¶ Copies common annotation properties to the
targe
annotation. Can be used within QgsAnnotation.clone() implementations to assist with creating copies.
-
create
() → QgsSvgAnnotation¶ Returns a new
QgsSvgAnnotation
object.- Return type
-
customEvent
(self, QEvent)¶
-
disconnectNotify
(self, QMetaMethod)¶
-
filePath
(self) → str¶ Returns the file path for the source SVG file.
See also
- Return type
str
-
isSignalConnected
(self, QMetaMethod) → bool¶
-
minimumFrameSize
(self) → QSizeF¶ Returns the minimum frame size for the annotation. Subclasses should implement this if they cannot be resized smaller than a certain minimum size.
-
readXml
(self, itemElem: QDomElement, context: QgsReadWriteContext)¶ - Parameters
itemElem (QDomElement) –
context (QgsReadWriteContext) –
-
receivers
(self, PYQT_SIGNAL) → int¶
-
renderAnnotation
(self, context: QgsRenderContext, size: QSizeF)¶ - Parameters
context (QgsRenderContext) –
size (QSizeF) –
-
sender
(self) → QObject¶
-
senderSignalIndex
(self) → int¶
-
setFilePath
(self, file: str)¶ Sets the file path for the source SVG file.
See also
- Parameters
file (str) –
-
timerEvent
(self, QTimerEvent)¶
-
writeXml
(self, elem: QDomElement, doc: QDomDocument, context: QgsReadWriteContext)¶ - Parameters
elem (QDomElement) –
doc (QDomDocument) –
context (QgsReadWriteContext) –