mirror of
https://github.com/zxing/zxing.git
synced 2024-11-11 13:34:08 -08:00
f9244cdd30
git-svn-id: https://zxing.googlecode.com/svn/trunk@2089 59b500cc-1b3d-0410-9834-0bbf25fbcc57
18 lines
548 B
C++
18 lines
548 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();
|
|
}
|