blob: ac82ac0cf7ac3c5e483d8ffa6bbbb6239725adcf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#include <QGuiApplication>
#include <QQmlApplicationEngine>
int main(int argc, char *argv[])
{
QGuiApplication app(argc, argv);
QQmlApplicationEngine engine;
engine.load(QUrl(qApp->applicationDirPath() + QStringLiteral("/data/main.qml")));
if (engine.rootObjects().isEmpty())
return -1;
return app.exec();
}
|