Class: QgsFormAnnotation¶
-
class
qgis.gui.
QgsFormAnnotation
(parent: QObject = None)¶ Bases:
QgsAnnotation
Constructor for QgsFormAnnotation.
An annotation item that embeds a designer form showing the feature attribute
New in version 3.0.
- Parameters
parent –
-
childEvent
()¶
-
clone
(self) → QgsFormAnnotation¶ - Return type
-
connectNotify
()¶
-
copyCommonProperties
()¶
-
create
() → QgsFormAnnotation¶ Returns a new
QgsFormAnnotation
object.- Return type
-
customEvent
()¶
-
designerForm
(self) → str¶ Returns the path to the Qt Designer UI file to show in the annotation.
See also
- Return type
str
-
disconnectNotify
()¶
-
isSignalConnected
()¶
-
minimumFrameSize
(self) → QSizeF¶ - Return type
QSizeF
-
preferredFrameSize
(self) → QSizeF¶ Returns the optimal frame size
- Return type
QSizeF
-
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
()¶
-
setAssociatedFeature
(self, feature: QgsFeature)¶ - Parameters
feature (QgsFeature) –
-
setDesignerForm
(self, uiFile: str)¶ Sets the path to the Qt Designer UI file to show in the annotation.
See also
- Parameters
uiFile (str) –
-
timerEvent
()¶
-
writeXml
(self, elem: QDomElement, doc: QDomDocument, context: QgsReadWriteContext)¶ - Parameters
elem (QDomElement) –
doc (QDomDocument) –
context (QgsReadWriteContext) –