#include #include #include #include #include #include "QZXingFilter.h" #if defined(Q_OS_IOS) /// Reference for iOS entry point: /// http://stackoverflow.com/questions/25353686/you-are-creating-qapplication-before-calling-uiapplicationmain-error-on-ios extern "C" int qtmn(int argc, char **argv) #else int main(int argc, char *argv[]) #endif { QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); QGuiApplication app(argc, argv); QQmlApplicationEngine engine; qmlRegisterType("QZXing", 2, 3, "QZXingFilter"); qmlRegisterType("QZXing", 2, 3, "QZXing"); engine.load(QUrl(QStringLiteral("qrc:/main.qml"))); return app.exec(); }