ReferenceLine

A description for ReferenceLine.

class ReferenceLine : public WorksheetElement

This class implements line that can be placed at a custom reference position on the plot to highlight certain aspects of the visualized data.

The custom position can be either specified by moving the line with the mouse or by manually providing the x- or y- coordinate for the vertical or horizontal orientations, respectively. The coordinates are provided relatively to plot’s coordinate system.

Public Functions

virtual QIcon icon() const override

Returns an icon to be used in the project explorer.

virtual QMenu *createContextMenu() override

Return a new context menu.

The caller takes ownership of the menu.

virtual void save(QXmlStreamWriter*) const override

Save as XML.

virtual bool load(XmlStreamReader*, bool preview) override

Load from XML.