#include #include "qmlapplicationviewer.h" #include #include #include #include "droparea.h" #include Q_DECL_EXPORT int main(int argc, char *argv[]) { QScopedPointer app(createApplication(argc, argv)); QZXing::registerQMLTypes(); QmlApplicationViewer viewer; viewer.setOrientation(QmlApplicationViewer::ScreenOrientationAuto); qmlRegisterType("DropArea", 1, 0, "DropArea"); viewer.setMainQmlFile(QLatin1String("qml/QZXingTestApp/main.qml")); viewer.showExpanded(); return app->exec(); }