main.cpp 572 B

123456789101112131415161718192021222324
  1. /**
  2. * Copyright (c) 2011 Nokia Corporation.
  3. */
  4. #include <QtGui/QApplication>
  5. #include <QtDeclarative>
  6. #include "myqmlapplicationviewer.h"
  7. int main(int argc, char *argv[])
  8. {
  9. QApplication app(argc, argv);
  10. MyQmlApplicationViewer viewer;
  11. viewer.setAttribute(Qt::WA_NoSystemBackground);
  12. viewer.setResizeMode(QDeclarativeView::SizeRootObjectToView);
  13. viewer.setOrientation(MyQmlApplicationViewer::ScreenOrientationAuto);
  14. viewer.setMainQmlFile("qrc:/main.qml");
  15. viewer.launchWithSplashQmlFile("qrc:/SplashScreen.qml");
  16. return app.exec();
  17. }