15 timer->setFrameRange(0, 100);
21 for (
int i = 0;
i < 200; ++
i)
The QApplication class manages the GUI application's control flow and main settings.
static int exec()
Enters the main event loop and waits until exit() is called, then returns the value that was set to e...
The QGraphicsEllipseItem class provides an ellipse item that you can add to a QGraphicsScene.
The QGraphicsItemAnimation class provides simple animation support for QGraphicsItem.
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.
void setSceneRect(const QRectF &rect)
The QGraphicsView class provides a widget for displaying the contents of a QGraphicsScene.
\inmodule QtCore\reentrant
void start(int msec)
Starts or restarts the timer with a timeout interval of msec milliseconds.
void show()
Shows the window.
QApplication app(argc, argv)
[0]