54 #include <QGraphicsItem>
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override
[1]
void mouseMoveEvent(QGraphicsSceneMouseEvent *event) override
[3]
void mouseReleaseEvent(QGraphicsSceneMouseEvent *event) override
[8]
QRectF boundingRect() const override
[0]
void mousePressEvent(QGraphicsSceneMouseEvent *event) override
[2]
The QColor class provides colors based on RGB, HSV or CMYK values.
The QGraphicsItem class is the base class for all graphical items in a QGraphicsScene.
The QGraphicsSceneMouseEvent class provides mouse events in the graphics view framework.
The QPainter class performs low-level painting on widgets and other paint devices.
The QRectF class defines a finite rectangle in the plane using floating point precision.
The QStyleOptionGraphicsItem class is used to describe the parameters needed to draw a QGraphicsItem.