mirror of
https://github.com/status-im/qzxing.git
synced 2025-02-02 06:06:37 +00:00
b5e4f06e9f
The qtmn hack is not required anymore.
22 lines
517 B
C++
22 lines
517 B
C++
#include <QGuiApplication>
|
|
#include <QQmlApplicationEngine>
|
|
#include <QQmlContext>
|
|
|
|
#include <QDebug>
|
|
|
|
#include <Qt>
|
|
#include "QZXingFilter.h"
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
|
|
QGuiApplication app(argc, argv);
|
|
QQmlApplicationEngine engine;
|
|
|
|
qmlRegisterType<QZXingFilter>("QZXing", 2, 3, "QZXingFilter");
|
|
qmlRegisterType<QZXing>("QZXing", 2, 3, "QZXing");
|
|
|
|
engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
|
|
return app.exec();
|
|
}
|