main.cpp 374 B

123456789101112131415
  1. #include <QtGui/QApplication>
  2. #include "qmlapplicationviewer.h"
  3. int main(int argc, char *argv[])
  4. {
  5. QApplication app(argc, argv);
  6. QmlApplicationViewer viewer;
  7. viewer.setOrientation(QmlApplicationViewer::ScreenOrientationLockLandscape);
  8. viewer.setMainQmlFile(QLatin1String("qml/DoodleDrive/main.qml"));
  9. viewer.showFullScreen();
  10. return app.exec();
  11. }