Guest User

Untitled

a guest
Dec 14th, 2013
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. int main(int argc, char *argv[])
  2. {
  3. // SailfishApp::main() will display "qml/template.qml", if you need more
  4. // control over initialization, you can use:
  5. //
  6. // - SailfishApp::application(int, char *[]) to get the QGuiApplication *
  7. // - SailfishApp::createView() to get a new QQuickView * instance
  8. // - SailfishApp::pathTo(QString) to get a QUrl to a resource file
  9. //
  10. // To display the view, call "show()" (will show fullscreen on device).
  11.  
  12. // QGuiApplication * app = SailfishApp::application(argc, argv);
  13. // QQuickView * view = SailfishApp::createView();
  14. QGuiApplication * app = new QGuiApplication(argc, argv);
  15. QQuickView * view = new QQuickView();
  16. view->setSource(QString("qml/FirstPage.qml"));
  17. app->exec();
  18. //return SailfishApp::main(argc, argv);
  19. }
Advertisement
Add Comment
Please, Sign In to add comment