main.cpp
15 lines
| 484 B
| text/x-c
|
CppLexer
Tero Ahola
|
r120 | #include <QtGui/QApplication> | ||
#include <QDeclarativeEngine> | ||||
#include "qmlapplicationviewer.h" | ||||
Q_DECL_EXPORT int main(int argc, char *argv[]) | ||||
{ | ||||
QScopedPointer<QApplication> app(createApplication(argc, argv)); | ||||
QScopedPointer<QmlApplicationViewer> viewer(QmlApplicationViewer::create()); | ||||
viewer->setOrientation(QmlApplicationViewer::ScreenOrientationAuto); | ||||
Michal Klocek
|
r255 | viewer->setSource(QUrl("qrc:/qml/qmlchart/loader.qml")); | ||
Tero Ahola
|
r120 | viewer->showExpanded(); | ||
return app->exec(); | ||||
} | ||||