Files
qt-creator/share/qtcreator/templates/qmlapp/main.cpp
Christian Kandeler 1507b5b4e1 QML wizard: Remove remains of dummy data loading.
The GUI part of this has been removed already.

Reviewed-by: Alessandro Portale
2010-09-21 16:32:30 +02:00

16 lines
424 B
C++

#include <QtGui/QApplication>
#include "qmlapplicationviewer.h"
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QmlApplicationViewer viewer;
viewer.addImportPath(QLatin1String("modules")); // ADDIMPORTPATH
viewer.setOrientation(QmlApplicationViewer::Auto); // ORIENTATION
viewer.setMainQmlFile(QLatin1String("qml/app/app.qml")); // MAINQML
viewer.show();
return app.exec();
}