Class: QgsPlotCanvasItem

class qgis.gui.QgsPlotCanvasItem

Bases: PyQt5.QtWidgets.QGraphicsItem

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

New in version 3.26.

QgsPlotCanvasItem(canvas: QgsPlotCanvas) Constructor for QgsPlotCanvasItem for the specified canvas.

contextMenuEvent(self, QGraphicsSceneContextMenuEvent)
dragEnterEvent(self, QGraphicsSceneDragDropEvent)
dragLeaveEvent(self, QGraphicsSceneDragDropEvent)
dragMoveEvent(self, QGraphicsSceneDragDropEvent)
dropEvent(self, QGraphicsSceneDragDropEvent)
focusInEvent(self, QFocusEvent)
focusOutEvent(self, QFocusEvent)
hoverEnterEvent(self, QGraphicsSceneHoverEvent)
hoverLeaveEvent(self, QGraphicsSceneHoverEvent)
hoverMoveEvent(self, QGraphicsSceneHoverEvent)
inputMethodEvent(self, QInputMethodEvent)
inputMethodQuery(self, Qt.InputMethodQuery) Any
itemChange(self, QGraphicsItem.GraphicsItemChange, Any) Any
keyPressEvent(self, QKeyEvent)
keyReleaseEvent(self, QKeyEvent)
mouseDoubleClickEvent(self, QGraphicsSceneMouseEvent)
mouseMoveEvent(self, QGraphicsSceneMouseEvent)
mousePressEvent(self, QGraphicsSceneMouseEvent)
mouseReleaseEvent(self, QGraphicsSceneMouseEvent)
paint(self, painter: QPainter)

Paints the item. Must be implemented by derived classes.

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

Parameters:

painter (QPainter) –

prepareGeometryChange(self)
sceneEvent(self, QEvent) bool
sceneEventFilter(self, QGraphicsItem, QEvent) bool
updateMicroFocus(self)
wheelEvent(self, QGraphicsSceneWheelEvent)