Nick Diego Yamane 557a52b17d QZXingFilter: Enforce captureRect validation
captureRect is accessible and modifyable via QML, so that
it can take arbitrary values, what can make QZXingFilter to crash
the application.

This issue was experienced when running code similar to QZXingLive
example on an android device, where captureRect is bound based on
VideoOutput's contentRect and sourceRect, when QML Engine is
calculating layout for the pages it sets temp values to width/height
of elements (including VideoOutput) what causes captureRect to be
set to invalid values for the QZXingFilter's perspective, such
as negative values for x and y.

Signed-off-by: Nick Diego Yamane <nick.diego@gmail.com>
2017-01-19 03:22:33 -04:00
..
2016-09-27 15:38:33 +03:00
2017-01-10 13:17:54 +01:00
2016-01-08 22:17:13 +02:00

Qt wrapper library for the ZXing decoding library.

How to use

To compile as dynamic library

qmake src/QZXing.pro make

Include the complete code to your project

In the .pro file of your project add the following line (update the path to point to the correct location of QZXing src): include(../../src/QZXing.pri)