29 lines
733 B
C++
Raw Normal View History

2022-01-13 21:51:56 +03:00
//#
2022-01-14 19:55:51 +03:00
//# Copyright (C) 2021-2022 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
2022-01-13 21:51:56 +03:00
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
//#
2022-01-16 14:13:00 +03:00
#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include <doctorpill.h>
2022-01-13 21:51:56 +03:00
int main(int argc, char *argv[]) {
2022-01-16 14:13:00 +03:00
QCoreApplication::setOrganizationName("QuasarApp");
QCoreApplication::setApplicationName("DoctorPillExample");
QGuiApplication app(argc, argv);
QQmlApplicationEngine engine;
if (!DP::init(&engine)) {
return -1;
}
engine.load("qrc:/Main.qml");
if (engine.rootObjects().isEmpty())
return -2;
return app.exec();
2022-01-13 21:51:56 +03:00
}