main.cpp 630 Bytes
Newer Older
1
2
3
4
5
6
7
#include <QtGui/QApplication>
#include "qmlapplicationview.h"

int main(int argc, char *argv[])
{
    QApplication app(argc, argv);

8
    QmlApplicationView qmlApp(QLatin1String("qml/app/app.qml")); // MAINQML
9
10
11
12
13
14
15
    QStringList importPaths; // IMPORTPATHSLIST
    qmlApp.setImportPathList(importPaths); // SETIMPORTPATHLIST
    qmlApp.setOrientation(QmlApplicationView::Auto); // ORIENTATION
    qmlApp.setLoadDummyData(false); // LOADDUMMYDATA

#ifdef Q_OS_SYMBIAN
    qmlApp.showFullScreen();
16
17
#elif defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6)
    qmlApp.showMaximized();
18
19
20
21
22
#else
    qmlApp.show();
#endif
    return app.exec();
}