mirror of https://github.com/status-im/qzxing.git
20 lines
415 B
C++
20 lines
415 B
C++
#include <QGuiApplication>
|
|
#include <QQmlApplicationEngine>
|
|
#include <QZXing.h>
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
|
QGuiApplication app(argc, argv);
|
|
|
|
QQmlApplicationEngine engine;
|
|
|
|
QZXing::registerQMLTypes();
|
|
QZXing::registerQMLImageProvider(engine);
|
|
|
|
engine.load(QUrl(QLatin1String("qrc:/main.qml")));
|
|
|
|
return app.exec();
|
|
}
|
|
|