aboutsummaryrefslogtreecommitdiffstats
path: root/examples/declarative/canvas/stockchart/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/canvas/stockchart/main.cpp')
-rw-r--r--examples/declarative/canvas/stockchart/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/declarative/canvas/stockchart/main.cpp b/examples/declarative/canvas/stockchart/main.cpp
index e10f287022..b1e7630d15 100644
--- a/examples/declarative/canvas/stockchart/main.cpp
+++ b/examples/declarative/canvas/stockchart/main.cpp
@@ -56,6 +56,8 @@ int main(int argc, char ** argv)
view.showFullScreen();
view.raise();
+ QObject::connect((QObject*)view.engine(), SIGNAL(quit()), (QObject*)&app, SLOT(quit()));
+
return app.exec();
}