aboutsummaryrefslogtreecommitdiffstats
path: root/examples/qml/tutorials/extending-qml/chapter2-methods
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2021-06-30 11:29:53 +0200
committerUlf Hermann <ulf.hermann@qt.io>2021-06-30 14:16:55 +0200
commitb200fbe213adf2859ddebefac0be60b04389a8a6 (patch)
tree5ce163112f85264393ae3875345114d407ba39a7 /examples/qml/tutorials/extending-qml/chapter2-methods
parent1629fa0c6c000127d84956c0604804a896e8f9bf (diff)
Do not call QGuiApplication::exec() on an instance
It's a static method. It should be called statically. Change-Id: I15fc8948988b0a2c0a30f8699949e06c66d92fdf Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
Diffstat (limited to 'examples/qml/tutorials/extending-qml/chapter2-methods')
-rw-r--r--examples/qml/tutorials/extending-qml/chapter2-methods/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/qml/tutorials/extending-qml/chapter2-methods/main.cpp b/examples/qml/tutorials/extending-qml/chapter2-methods/main.cpp
index 10df9c2566..1811c9bb9d 100644
--- a/examples/qml/tutorials/extending-qml/chapter2-methods/main.cpp
+++ b/examples/qml/tutorials/extending-qml/chapter2-methods/main.cpp
@@ -60,6 +60,6 @@ int main(int argc, char *argv[])
view.setResizeMode(QQuickView::SizeRootObjectToView);
view.setSource(QUrl("qrc:///app.qml"));
view.show();
- return app.exec();
+ return QGuiApplication::exec();
}
//![0]