Class: QgsPlotCanvasItem

An abstract class for items that can be placed on a QgsPlotCanvas.

Added in version 3.26.

Class Hierarchy

Inheritance diagram of qgis.gui.QgsPlotCanvasItem

Base classes

QGraphicsItem

class qgis.gui.QgsPlotCanvasItem[source]

Bases: QGraphicsItem

__init__(canvas: QgsPlotCanvas | None)

Constructor for QgsPlotCanvasItem for the specified canvas.

Parameters:

canvas (Optional[QgsPlotCanvas])

abstract paint(self, painter: QPainter | None)[source]

Paints the item. Must be implemented by derived classes.

paint(self, painter: Optional[QPainter], option: Optional[QStyleOptionGraphicsItem], widget: Optional[QWidget] = None)

Parameters:

painter (Optional[QPainter])