From: John Janus Date: Sat, 3 Jan 2015 21:23:49 +0000 (+0100) Subject: initial X-Git-Url: https://git.johnzone.org/?a=commitdiff_plain;h=HEAD;p=notdienst_2015.git initial --- 494a2dabb11262bfa3f688ffcf4c48e63a1ff601 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 + +