-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
31 lines (23 loc) · 797 Bytes
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include <QGuiApplication>
#include <QApplication>
#include <QQmlApplicationEngine>
#include <QQmlContext>
#include <QSettings>
#include "rcontroller.h"
int main(int argc, char *argv[])
{
QCoreApplication::setOrganizationName("AydoLabs");
QCoreApplication::setOrganizationDomain("aydolabs.com");
QCoreApplication::setApplicationName("Akıllı Lamba");
QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QSettings tSettings;
QApplication a(argc, argv);
RController* tController = new RController();
tController->init();
QQmlApplicationEngine engine;
engine.rootContext()->setContextProperty("controller", tController);
engine.load(QUrl("qrc:/main.qml"));
if (engine.rootObjects().isEmpty())
return -1;
return a.exec();
}