##// END OF EJS Templates
Add qmlplugin support for integrated build
Add qmlplugin support for integrated build

File last commit:

r255:ef94f64ce15a
r255:ef94f64ce15a
Show More
main.cpp
15 lines | 484 B | text/x-c | CppLexer
Tero Ahola
Proof-of-concept for QML api...
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
Add qmlplugin support for integrated build
r255 viewer->setSource(QUrl("qrc:/qml/qmlchart/loader.qml"));
Tero Ahola
Proof-of-concept for QML api...
r120 viewer->showExpanded();
return app->exec();
}