main.cpp 631 B

1234567891011121314151617181920
  1. #include <QtGui/QApplication>
  2. #include "qmlapplicationviewer.h"
  3. #include <QDeclarativeEngine>
  4. #include <QDebug>
  5. Q_DECL_EXPORT int main(int argc, char *argv[])
  6. {
  7. QScopedPointer<QApplication> app(createApplication(argc, argv));
  8. QScopedPointer<QmlApplicationViewer> viewer(QmlApplicationViewer::create());
  9. viewer->addImportPath("bin/com/juhanapaavola/qmlcomponents");
  10. viewer->addImportPath("bin");
  11. viewer->setOrientation(QmlApplicationViewer::ScreenOrientationAuto);
  12. viewer->setMainQmlFile(QLatin1String("qml/meecomicui/main.qml"));
  13. viewer->showExpanded();
  14. return app->exec();
  15. }