4
1
mirror of https://github.com/QuasarApp/CQtDeployer.git synced 2025-04-30 03:34:34 +00:00
2022-08-20 13:16:49 +03:00

18 lines
382 B
C++

#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include <QTimer>
int main(int argc, char *argv[])
{
QGuiApplication app(argc, argv);
QQmlApplicationEngine engine;
engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
if (engine.rootObjects().isEmpty())
return -1;
QTimer::singleShot(200, [&app](){ app.exit(0);});
return app.exec();
}