From 494a2dabb11262bfa3f688ffcf4c48e63a1ff601 Mon Sep 17 00:00:00 2001 From: John Janus Date: Sat, 3 Jan 2015 22:23:49 +0100 Subject: [PATCH] initial --- .gitignore | 1 + deployment.pri | 27 +++++++++++++++++++++++++++ main.cpp | 12 ++++++++++++ main.qml | 20 ++++++++++++++++++++ notdienst_2015.pro | 13 +++++++++++++ qml.qrc | 5 +++++ 6 files changed, 78 insertions(+) create mode 100644 .gitignore create mode 100644 deployment.pri create mode 100644 main.cpp create mode 100644 main.qml create mode 100644 notdienst_2015.pro create mode 100644 qml.qrc diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..75c107b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.pro.user diff --git a/deployment.pri b/deployment.pri new file mode 100644 index 0000000..5441b63 --- /dev/null +++ b/deployment.pri @@ -0,0 +1,27 @@ +android-no-sdk { + target.path = /data/user/qt + export(target.path) + INSTALLS += target +} else:android { + x86 { + target.path = /libs/x86 + } else: armeabi-v7a { + target.path = /libs/armeabi-v7a + } else { + target.path = /libs/armeabi + } + export(target.path) + INSTALLS += target +} else:unix { + isEmpty(target.path) { + qnx { + target.path = /tmp/$${TARGET}/bin + } else { + target.path = /opt/$${TARGET}/bin + } + export(target.path) + } + INSTALLS += target +} + +export(INSTALLS) diff --git a/main.cpp b/main.cpp new file mode 100644 index 0000000..d76049d --- /dev/null +++ b/main.cpp @@ -0,0 +1,12 @@ +#include +#include + +int main(int argc, char *argv[]) +{ + QGuiApplication app(argc, argv); + + QQmlApplicationEngine engine; + engine.load(QUrl(QStringLiteral("qrc:/main.qml"))); + + return app.exec(); +} diff --git a/main.qml b/main.qml new file mode 100644 index 0000000..af32f2e --- /dev/null +++ b/main.qml @@ -0,0 +1,20 @@ +import QtQuick 2.3 +import QtQuick.Window 2.2 + +Window { + visible: true + width: 360 + height: 360 + + MouseArea { + anchors.fill: parent + onClicked: { + Qt.quit(); + } + } + + Text { + text: qsTr("Hello World") + anchors.centerIn: parent + } +} diff --git a/notdienst_2015.pro b/notdienst_2015.pro new file mode 100644 index 0000000..77cbe78 --- /dev/null +++ b/notdienst_2015.pro @@ -0,0 +1,13 @@ +TEMPLATE = app + +QT += qml quick + +SOURCES += main.cpp + +RESOURCES += qml.qrc + +# Additional import path used to resolve QML modules in Qt Creator's code model +QML_IMPORT_PATH = + +# Default rules for deployment. +include(deployment.pri) diff --git a/qml.qrc b/qml.qrc new file mode 100644 index 0000000..5f6483a --- /dev/null +++ b/qml.qrc @@ -0,0 +1,5 @@ + + + main.qml + + -- 2.47.0