12345678910111213141516171819202122232425 |
- #include <QtGui/QApplication>
- #include "qmlapplicationviewer.h"
- #include <QtDeclarative>
- #include "iapminimal.h"
- // Include inneractiveplugin.h for using inneractive components
- #include <inneractiveplugin.h>
- Q_DECL_EXPORT int main(int argc, char *argv[])
- {
- QScopedPointer<QApplication> app(createApplication(argc, argv));
- qmlRegisterType<IAPminimal>("iapminimal.com", 1, 0, "IAPmin");
- QmlApplicationViewer viewer;
- // Initialize QDeclarativeEngine with inneractivePlugin
- inneractivePlugin::initializeEngine(viewer.engine());
- viewer.setOrientation(QmlApplicationViewer::ScreenOrientationAuto);
- viewer.setMainQmlFile(QLatin1String("qml/iapminimal/main.qml"));
- viewer.showExpanded();
- return app->exec();
- }
|