summaryrefslogtreecommitdiff
path: root/main.cxx
diff options
context:
space:
mode:
authorErik Prabowo Kamal <erik@darapsa.co.id>2019-08-23 15:36:18 +0800
committerErik Prabowo Kamal <erik@darapsa.co.id>2019-08-23 15:36:18 +0800
commitf14878b05ee885f1747feab256011b4da72ae778 (patch)
treee9415590ecccaa1fe30b20a49f418990d650302f /main.cxx
parentc592064dda137e81cee7a421bb68fa83535542bd (diff)
Started to use cURL
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..0108135 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;
+
+ Kelakon::NetworkWorker worker{};
+ QThread thread;
+ worker.moveToThread(&thread);
+
engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
+
+ thread.start();
+
return app.exec();
}