summaryrefslogtreecommitdiff
path: root/main.cxx
diff options
context:
space:
mode:
authorErik Prabowo Kamal <erik@darapsa.co.id>2019-08-27 10:57:41 +0800
committerErik Prabowo Kamal <erik@darapsa.co.id>2019-08-27 10:57:41 +0800
commiteab46365359fb1846b16fa33cfe71593da05cb15 (patch)
tree5704395d2de63c67f2bba77e65cc40b1b4fa3017 /main.cxx
parent0ced5545b7053ea6d77c0191e5732e36f7737467 (diff)
parent66ae26cf69793e89c95b73f0488a3da4fb7394c7 (diff)
Merge branch 'curl' into development
Diffstat (limited to 'main.cxx')
-rw-r--r--main.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/main.cxx b/main.cxx
index 94f8599..41b25af 100644
--- a/main.cxx
+++ b/main.cxx
@@ -1,11 +1,21 @@
#include <QGuiApplication>
#include <QQmlApplicationEngine>
+#include <QThread>
+#include "networkworker.hxx"
int main(int argc, char* argv[])
{
QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QGuiApplication app(argc, argv);
QQmlApplicationEngine engine;
+
+ NetworkWorker worker{};
+ QThread thread;
+ worker.moveToThread(&thread);
+
engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
+
+ thread.start();
+
return app.exec();
}