QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
Go to the documentation of this file.
18 #ifndef QGSFORMANNOTATION_H
19 #define QGSFORMANNOTATION_H
47 QSizeF preferredFrameSize()
const;
53 void setDesignerForm(
const QString &uiFile );
77 std::unique_ptr<QWidget> mDesignerWidget;
80 QString mDesignerForm;
82 QWidget *createDesignerWidget(
const QString &filePath );
85 #endif // QGSFORMANNOTATION_H
virtual void writeXml(QDomElement &elem, QDomDocument &doc, const QgsReadWriteContext &context) const =0
Writes the annotation state to a DOM element.
virtual void readXml(const QDomElement &itemElem, const QgsReadWriteContext &context)=0
Restores the annotation's state from a DOM element.
virtual void renderAnnotation(QgsRenderContext &context, QSizeF size) const =0
Renders the annotation's contents to a target /a context at the specified /a size.
Abstract base class for annotation items which are drawn over a map.
virtual QgsAnnotation * clone() const =0
Clones the annotation, returning a new copy of the annotation reflecting the annotation's current sta...
virtual void setAssociatedFeature(const QgsFeature &feature)
Sets the feature associated with the annotation.
virtual QSizeF minimumFrameSize() const
Returns the minimum frame size for the annotation.