virtual QgsAnnotation * clone() const =0
Clones the annotation, returning a new copy of the annotation reflecting the annotation's current sta...
virtual void writeXml(QDomElement &elem, QDomDocument &doc, const QgsReadWriteContext &context) const =0
Writes the annotation state to a DOM element.
A container for the context for various read/write operations on objects.
Contains information about the context of a rendering operation.
const QTextDocument * document() const
Returns the text document which will be rendered within the annotation.
void setDocument(const QTextDocument *doc)
Sets the text document which will be rendered within the annotation.
static QgsTextAnnotation * create()
Returns a new QgsTextAnnotation object.
QgsTextAnnotation(QObject *parent=nullptr)
Constructor for QgsTextAnnotation.