peter9477

QML on PlayBook hello world C++ code

Mar 7th, 2012
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.36 KB | None | 0 0
  1. #include <QApplication>
  2.  
  3. #include <QDeclarativeView>
  4.  
  5. int main(int argc, char *argv[])
  6. {
  7.     QCoreApplication::addLibraryPath("app/native/lib");
  8.     QApplication app(argc, argv);
  9.  
  10.     QDeclarativeView v;
  11.     QDeclarativeContext *c = v.rootContext();
  12.  
  13.     v.setSource(QUrl::fromLocalFile("app/native/qml/main.qml"));
  14.     v.show();
  15.  
  16.     return app.exec();
  17. }
Advertisement
Add Comment
Please, Sign In to add comment