2015-05-12 14:21:38 +02:00
|
|
|
%{Cpp:LicenseTemplate}\
|
2015-08-22 19:16:53 +09:00
|
|
|
%{JS: QtSupport.qtIncludes([], ["QtGui/QGuiApplication", "QtQml/QQmlApplicationEngine"])}
|
2013-11-19 17:00:38 +01:00
|
|
|
int main(int argc, char *argv[])
|
|
|
|
|
{
|
2017-08-01 15:37:05 +02:00
|
|
|
@if %{SetQPAPhysicalSize}
|
|
|
|
|
qputenv("QT_QPA_EGLFS_PHYSICAL_WIDTH", QByteArray("213"));
|
|
|
|
|
qputenv("QT_QPA_EGLFS_PHYSICAL_HEIGHT", QByteArray("120"));
|
|
|
|
|
|
|
|
|
|
@endif
|
2016-08-10 14:13:43 +02:00
|
|
|
@if %{UseVirtualKeyboard}
|
|
|
|
|
qputenv("QT_IM_MODULE", QByteArray("qtvirtualkeyboard"));
|
|
|
|
|
|
|
|
|
|
@endif
|
2017-11-28 12:35:29 +01:00
|
|
|
#if defined(Q_OS_WIN)
|
2017-08-01 15:37:05 +02:00
|
|
|
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
2017-11-28 12:35:29 +01:00
|
|
|
#endif
|
2017-08-01 15:37:05 +02:00
|
|
|
|
2013-11-19 17:00:38 +01:00
|
|
|
QGuiApplication app(argc, argv);
|
|
|
|
|
|
2014-01-29 15:43:04 +01:00
|
|
|
QQmlApplicationEngine engine;
|
2014-05-16 11:56:03 +02:00
|
|
|
engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
|
2017-05-12 08:55:01 +02:00
|
|
|
if (engine.rootObjects().isEmpty())
|
|
|
|
|
return -1;
|
2013-11-19 17:00:38 +01:00
|
|
|
|
|
|
|
|
return app.exec();
|
|
|
|
|
}
|