Advertisement
faenil

Untitled

Dec 5th, 2011
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. #include <QtGui/QApplication>
  2. #include "qmlapplicationviewer.h"
  3. #include <vector>
  4. Q_DECL_EXPORT int main(int argc, char *argv[])
  5. {
  6. QScopedPointer<QApplication> app(createApplication(argc, argv));
  7. QScopedPointer<QmlApplicationViewer> viewer(QmlApplicationViewer::create());
  8.  
  9. viewer->setOrientation(QmlApplicationViewer::ScreenOrientationAuto);
  10. viewer->setMainQmlFile(QLatin1String("qml/main.qml"));
  11. viewer->showExpanded();
  12.  
  13. std::vector<int> test;
  14. test.push_back(3);
  15.  
  16. return app->exec();
  17.  
  18. }
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement