2017-01-23 19:45:47 +02:00
|
|
|
#include <QGuiApplication>
|
|
|
|
#include <QQmlApplicationEngine>
|
2015-07-16 21:09:44 +03:00
|
|
|
#include <QZXing.h>
|
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
2017-01-23 19:45:47 +02:00
|
|
|
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
2015-07-16 21:09:44 +03:00
|
|
|
QGuiApplication app(argc, argv);
|
|
|
|
|
2017-01-23 19:45:47 +02:00
|
|
|
QQmlApplicationEngine engine;
|
2016-06-16 01:16:35 +03:00
|
|
|
|
2017-01-23 19:45:47 +02:00
|
|
|
QZXing::registerQMLTypes();
|
|
|
|
QZXing::registerQMLImageProvider(engine);
|
2015-07-16 21:09:44 +03:00
|
|
|
|
2017-01-23 19:45:47 +02:00
|
|
|
engine.load(QUrl(QLatin1String("qrc:/main.qml")));
|
2015-07-16 21:09:44 +03:00
|
|
|
|
|
|
|
return app.exec();
|
|
|
|
}
|
2017-01-23 19:45:47 +02:00
|
|
|
|