55 #include <QGraphicsItem>
void paint(QPainter *painter, const QStyleOptionGraphicsItem *item, QWidget *widget) override
void mousePressEvent(QGraphicsSceneMouseEvent *event) override
Chip(const QColor &color, int x, int y)
QRectF boundingRect() const override
void mouseMoveEvent(QGraphicsSceneMouseEvent *event) override
void mouseReleaseEvent(QGraphicsSceneMouseEvent *event) override
QPainterPath shape() const override
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 QPainterPath class provides a container for painting operations, enabling graphical shapes to be ...
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.
GLint GLint GLint GLint GLint x
[0]