blob: 81c1c85b539b6b00cd3c28f91c58e57e60285ec2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#include <QGuiApplication>
#include <QQuickView>
int main(int argc, char* argv[])
{
QGuiApplication app(argc,argv);
QQuickView view;
view.setResizeMode(QQuickView::SizeRootObjectToView);
view.setSource(QUrl::fromLocalFile(QCoreApplication::applicationDirPath() + QLatin1String("/Qt5_CinematicExperience.qml")));
const QString lowerArgument = QString::fromLatin1(argv[1]).toLower();
if (lowerArgument == QLatin1String("--fullscreen")) {
view.showFullScreen();
} else {
view.show();
}
return app.exec();
}
|