aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorMikko Syrjä <mikko@3d-system.fi>2019-02-06 22:04:07 +0200
committerMikko Syrjä <mikko@3d-system.fi>2019-02-06 22:04:07 +0200
commitee265d4d86c5d371d23b0e5254de5c047fee1046 (patch)
tree98410a54643e73d56f66b58570ae565daf294f6d /main.cpp
parent98522593bd49c77ce969a9bf124f2a471d4f7ce1 (diff)
downloadsymedit-ee265d4d86c5d371d23b0e5254de5c047fee1046.tar.gz
symedit-ee265d4d86c5d371d23b0e5254de5c047fee1046.zip
Initial commit
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..5298d03
--- /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();
+}