From f14878b05ee885f1747feab256011b4da72ae778 Mon Sep 17 00:00:00 2001 From: Erik Prabowo Kamal Date: Fri, 23 Aug 2019 15:36:18 +0800 Subject: Started to use cURL --- main.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'main.cxx') diff --git a/main.cxx b/main.cxx index 94f8599..0108135 100644 --- a/main.cxx +++ b/main.cxx @@ -1,11 +1,21 @@ #include #include +#include +#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(); } -- cgit v1.2.3