mirror of
https://github.com/status-im/qzxing.git
synced 2025-02-21 15:18:14 +00:00
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>
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)