Advertisement
peter9477

Untitled

Mar 1st, 2012
84
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. #include <QDeclarativeView>
  3.  
  4. int main(int argc, char *argv[])
  5. {
  6.     QCoreApplication::addLibraryPath("app/native/lib");
  7.     QApplication app(argc, argv);
  8.  
  9.     QDeclarativeView v;
  10.     QDeclarativeContext *c = v.rootContext();
  11.  
  12.     v.setSource(QUrl::fromLocalFile("app/native/qml/main.qml"));
  13.     v.show();
  14.  
  15.     return app.exec();
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement