1234567891011121314151617181920 |
- #include <QtGui/QApplication>
- #include "qmlapplicationviewer.h"
- #include <QDeclarativeEngine>
- #include <QDebug>
- Q_DECL_EXPORT int main(int argc, char *argv[])
- {
- QScopedPointer<QApplication> app(createApplication(argc, argv));
- QScopedPointer<QmlApplicationViewer> viewer(QmlApplicationViewer::create());
- viewer->addImportPath("bin/com/juhanapaavola/qmlcomponents");
- viewer->addImportPath("bin");
- viewer->setOrientation(QmlApplicationViewer::ScreenOrientationAuto);
- viewer->setMainQmlFile(QLatin1String("qml/meecomicui/main.qml"));
- viewer->showExpanded();
- return app->exec();
- }
|