main.cpp 474 B

123456789101112131415
  1. #include <QtGui/QApplication>
  2. #include "qmlapplicationviewer.h"
  3. Q_DECL_EXPORT int main(int argc, char *argv[])
  4. {
  5. QScopedPointer<QApplication> app(createApplication(argc, argv));
  6. QScopedPointer<QmlApplicationViewer> viewer(QmlApplicationViewer::create());
  7. viewer->setMainQmlFile(QLatin1String("qml/fp1/FpSplashScreen.qml"));
  8. viewer->showExpanded();
  9. viewer->setOrientation(viewer->ScreenOrientationLockPortrait);
  10. return app->exec();
  11. }