2016-09-27 00:06:28 +00:00
|
|
|
#include <QGuiApplication>
|
|
|
|
#include <QQmlApplicationEngine>
|
|
|
|
#include <QQmlContext>
|
|
|
|
|
|
|
|
#include <QDebug>
|
|
|
|
|
|
|
|
#include <Qt>
|
2017-01-16 17:57:25 +00:00
|
|
|
#include <QZXing.h>
|
2016-09-27 00:06:28 +00:00
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
|
|
|
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
|
|
|
|
QGuiApplication app(argc, argv);
|
|
|
|
QQmlApplicationEngine engine;
|
|
|
|
|
2017-01-16 17:57:25 +00:00
|
|
|
QZXing::registerQMLTypes();
|
2016-09-27 00:06:28 +00:00
|
|
|
|
|
|
|
engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
|
|
|
|
return app.exec();
|
|
|
|
}
|