summaryrefslogtreecommitdiffstats
path: root/examples/sensors/accelbubble/main.cpp
diff options
context:
space:
mode:
authorVenu <venugopal.shivashankar@digia.com>2013-07-01 15:14:00 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-08-02 14:40:35 +0200
commit1484cb76315984d4833b510bf9b4e65af4ca696e (patch)
tree0446ea1031a51b647b0d7c96dc0f69df64121a82 /examples/sensors/accelbubble/main.cpp
parent0e86de52c22cef74a6d0536d985a2a047051c0d8 (diff)
Updated the example to use SVG content and Qt Quick controls.v5.1.1
Using sensors module and svg content in a Qt Quick app has been tricky so far as the C++ plug-in dependencies are not detected automatically by creator. This change is intended to make the app suitable for a tutorial explaining how to create a Qt Quick app for Android. Change-Id: I05b7413b1224e009ae739cf7a16181519cab7619 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
Diffstat (limited to 'examples/sensors/accelbubble/main.cpp')
-rw-r--r--examples/sensors/accelbubble/main.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/examples/sensors/accelbubble/main.cpp b/examples/sensors/accelbubble/main.cpp
index bc557637..222c8966 100644
--- a/examples/sensors/accelbubble/main.cpp
+++ b/examples/sensors/accelbubble/main.cpp
@@ -38,5 +38,14 @@
**
****************************************************************************/
-#include "../stub.h"
-SENSORS_EXAMPLE_MAIN(accelbubble)
+
+#include <QtGui/QGuiApplication>
+#include <QtQml/QQmlApplicationEngine>
+
+int main(int argc, char *argv[])
+{
+ QGuiApplication app(argc,argv);
+ QQmlApplicationEngine engine(QUrl("qrc:///accelbubble.qml"));
+
+ return app.exec();
+}