18#ifndef QGSPLOTCANVASITEM_H
19#define QGSPLOTCANVASITEM_H
24#include <QGraphicsItem>
44 sipType = sipType_QgsPlotCanvasItem;
62 virtual void paint( QPainter *painter ) = 0;
64 void paint( QPainter *painter,
const QStyleOptionGraphicsItem *option, QWidget *widget =
nullptr )
override;
virtual void paint(QPainter *painter)=0
Paints the item.
~QgsPlotCanvasItem() override
QgsPlotCanvas * mCanvas
Associated canvas.
QgsPlotCanvasItem(QgsPlotCanvas *canvas)
Constructor for QgsPlotCanvasItem for the specified canvas.
Plot canvas is a class for displaying interactive 2d charts and plots.
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)