123456789101112131415161718192021222324252627282930313233 |
- #include <QtGui/QApplication>
- #include "qmlapplicationviewer.h"
- #ifdef HAVE_GLWIDGET
- #include <QGLWidget>
- #endif
- int main(int argc, char *argv[])
- {
- #ifdef Q_OS_SYMBIAN
- QApplication::setGraphicsSystem(QLatin1String("openvg"));
- #elif defined(Q_WS_MAEMO_5)
- QApplication::setGraphicsSystem(QLatin1String("opengl"));
- //#else
- // QApplication::setGraphicsSystem(QLatin1String("raster"));
- #endif
- QApplication app(argc, argv);
- //app.setProperty("NoMStyle", true);
- QmlApplicationViewer viewer;
- #ifdef HAVE_GLWIDGET
- QGLWidget *glWidget = new QGLWidget(&viewer);
- viewer.setViewport(glWidget);
- #endif
- viewer.setOrientation(QmlApplicationViewer::ScreenOrientationAuto);
- viewer.setMainQmlFile(QLatin1String("qml/MeeToDo/main.qml"));
- //viewer.showExpanded();
- viewer.showFullScreen();
- return app.exec();
- }
|