Doc: point at tetrix example for QBasicTimer usage
The wiggly example is gone, but tetrix shows how to use QBasicTimer as well. Pick-to: 6.5 Change-Id: Iaad78b0d7e2136ef41d98f634d0680e6f7f3c4e1 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
This commit is contained in:
parent
721b4a4b5a
commit
b7b712181b
@ -94,6 +94,6 @@
|
|||||||
optimization, you can use QBasicTimer instead of QTimer. With
|
optimization, you can use QBasicTimer instead of QTimer. With
|
||||||
QBasicTimer, you must reimplement
|
QBasicTimer, you must reimplement
|
||||||
\l{QObject::timerEvent()}{timerEvent()} in your QObject subclass
|
\l{QObject::timerEvent()}{timerEvent()} in your QObject subclass
|
||||||
and handle the timeout there. The \l{widgets/wiggly}{Wiggly}
|
and handle the timeout there. The \l{widgets/tetrix}{Tetrix}
|
||||||
example shows how to use QBasicTimer.
|
example shows how to use QBasicTimer.
|
||||||
*/
|
*/
|
||||||
|
@ -33,8 +33,8 @@ QT_BEGIN_NAMESPACE
|
|||||||
can maintain a list of basic timers by holding them in container
|
can maintain a list of basic timers by holding them in container
|
||||||
that supports move-only types, e.g. std::vector.
|
that supports move-only types, e.g. std::vector.
|
||||||
|
|
||||||
The \l{widgets/wiggly}{Wiggly} example uses QBasicTimer to repaint
|
The \l{widgets/tetrix}{Tetrix} example uses QBasicTimer to control
|
||||||
a widget at regular intervals.
|
the rate at which pieces fall.
|
||||||
|
|
||||||
\sa QTimer, QTimerEvent, QObject::timerEvent(), Timers, {Affine Transformations}
|
\sa QTimer, QTimerEvent, QObject::timerEvent(), Timers, {Affine Transformations}
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user