summaryrefslogtreecommitdiffstats
path: root/examples/graphicsview/collidingmice/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/graphicsview/collidingmice/main.cpp')
-rw-r--r--examples/graphicsview/collidingmice/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/graphicsview/collidingmice/main.cpp b/examples/graphicsview/collidingmice/main.cpp
index 4a44481b90..23c91b02df 100644
--- a/examples/graphicsview/collidingmice/main.cpp
+++ b/examples/graphicsview/collidingmice/main.cpp
@@ -83,6 +83,10 @@ int main(int argc, char **argv)
view.resize(400, 300);
view.show();
+ QTimer timer;
+ QObject::connect(&timer, SIGNAL(timeout()), &scene, SLOT(advance()));
+ timer.start(1000 / 33);
+
return app.exec();
}
//! [6]