4#include <QGraphicsEllipseItem>
5#include <QGraphicsScene>
6#include <QStyleOptionGraphicsItem>
26 for (
int i = 0;
i < numItems; ++
i) {
void drawItems(QPainter *painter, int numItems, QGraphicsItem *items[], const QStyleOptionGraphicsItem options[], QWidget *widget=nullptr) override
[0]
The QGraphicsEllipseItem class provides an ellipse item that you can add to a QGraphicsScene.
The QGraphicsItem class is the base class for all graphical items in a QGraphicsScene.
The QGraphicsScene class provides a surface for managing a large number of 2D graphical items.
void addItem(QGraphicsItem *item)
Adds or moves the item and all its children to this scene.
The QPainter class performs low-level painting on widgets and other paint devices.
void restore()
Restores the current painter state (pops a saved state off the stack).
void save()
Saves the current painter state (pushes the state onto a stack).
void setTransform(const QTransform &transform, bool combine=false)
\inmodule QtCore\reentrant
The QStyleOptionGraphicsItem class is used to describe the parameters needed to draw a QGraphicsItem.
rect sceneTransform().map(QPointF(0