mirror of https://github.com/status-im/qzxing.git
18 lines
531 B
C++
18 lines
531 B
C++
#include <QtGui/QApplication>
|
|
#include <QZXing.h>
|
|
#include "qmlapplicationviewer.h"
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
QScopedPointer<QApplication> app(createApplication(argc, argv));
|
|
QScopedPointer<QmlApplicationViewer> viewer(QmlApplicationViewer::create());
|
|
|
|
QZXing::registerQMLTypes();
|
|
|
|
viewer->setOrientation(QmlApplicationViewer::ScreenOrientationLockPortrait);
|
|
viewer->setMainQmlFile(QLatin1String("qml/QMLBarcodeScanner/declarative-camera.qml"));
|
|
viewer->showExpanded();
|
|
|
|
return app->exec();
|
|
}
|