aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorDaniel Teichmann <daniel.teichmann@das-netzwerkteam.de>2020-07-17 16:33:41 +0200
committerDaniel Teichmann <daniel.teichmann@das-netzwerkteam.de>2020-07-17 16:35:10 +0200
commit2997cb8cfb0d17758a38aff036d6ff506758a3de (patch)
treec2cbf10defbe6299b4bf8185de8d700882d71373 /main.cpp
parent39422cee2bc92a94d03f7b80f6c018d3c808181b (diff)
downloadRWA.Support.DesktopApp-2997cb8cfb0d17758a38aff036d6ff506758a3de.tar.gz
RWA.Support.DesktopApp-2997cb8cfb0d17758a38aff036d6ff506758a3de.tar.bz2
RWA.Support.DesktopApp-2997cb8cfb0d17758a38aff036d6ff506758a3de.zip
Initial commit (Empty Qt Quick application)
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
new file mode 100644
index 0000000..6333b85
--- /dev/null
+++ b/main.cpp
@@ -0,0 +1,16 @@
+#include <QGuiApplication>
+#include <QQmlApplicationEngine>
+
+int main(int argc, char *argv[])
+{
+ QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
+
+ QGuiApplication app(argc, argv);
+
+ QQmlApplicationEngine engine;
+ engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
+ if (engine.rootObjects().isEmpty())
+ return -1;
+
+ return app.exec();
+}