Subgroup: other

Class: QgsFormAnnotation

class qgis.gui.QgsFormAnnotation(parent: QObject = None)

Bases: qgis._core.QgsAnnotation

Constructor for QgsFormAnnotation.

An annotation item that embeds a designer form showing the feature attribute

New in version 3.0: Methods

childEvent
clone
connectNotify
copyCommonProperties
create Returns a new QgsFormAnnotation object.
customEvent
designerForm Returns the path to the Qt Designer UI file to show in the annotation.
disconnectNotify
isSignalConnected
minimumFrameSize
preferredFrameSize Returns the optimal frame size
readXml
receivers
renderAnnotation
sender
senderSignalIndex
setAssociatedFeature
setDesignerForm Sets the path to the Qt Designer UI file to show in the annotation.
timerEvent
writeXml

Signals

Attributes

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

Returns a new QgsFormAnnotation object.

customEvent()
designerForm(self) → str

Returns the path to the Qt Designer UI file to show in the annotation.

disconnectNotify()
isSignalConnected()
minimumFrameSize(self) → QSizeF
preferredFrameSize(self) → QSizeF

Returns the optimal frame size

readXml(self, itemElem: QDomElement, context: QgsReadWriteContext)
receivers()
renderAnnotation(self, context: QgsRenderContext, size: QSizeF)
sender()
senderSignalIndex()
setAssociatedFeature(self, feature: QgsFeature)
setDesignerForm(self, uiFile: str)

Sets the path to the Qt Designer UI file to show in the annotation.

See also

designerForm()

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