summaryrefslogtreecommitdiff
path: root/share/qtcreator/templates/qtquick/qtquick_2_2/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'share/qtcreator/templates/qtquick/qtquick_2_2/main.cpp')
-rw-r--r--share/qtcreator/templates/qtquick/qtquick_2_2/main.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/share/qtcreator/templates/qtquick/qtquick_2_2/main.cpp b/share/qtcreator/templates/qtquick/qtquick_2_2/main.cpp
new file mode 100644
index 0000000000..fd46906328
--- /dev/null
+++ b/share/qtcreator/templates/qtquick/qtquick_2_2/main.cpp
@@ -0,0 +1,13 @@
+#include <QtGui/QGuiApplication>
+#include "qtquick2applicationviewer.h"
+
+int main(int argc, char *argv[])
+{
+ QGuiApplication app(argc, argv);
+
+ QtQuick2ApplicationViewer viewer;
+ viewer.setMainQmlFile(QStringLiteral("qml/app/main.qml")); // MAINQML
+ viewer.showExpanded();
+
+ return app.exec();
+}