Mohammad Kanan

Results 17 comments of Mohammad Kanan

> PR is welcome. Shortly ..

[**Sep 25 17**] Hello @ftylitak , I tried out your suggested code, ended up with this error ... not sure if Qt related or ... `error: no matching function for...

this is how replaced the line you pointed: ```cpp //decode(*image_ptr); QEventLoop evt; QFutureWatcher watcher; QTimer timer(this); timer.setSingleShot(true); QObject::connect(&watcher, &QFutureWatcher::finished, &evt, &QEventLoop::quit); QObject::connect(&timer, SIGNAL(timeout()), &watcher, SLOT(cancel())); QObject::connect(&timer, SIGNAL(timeout()), &evt, SLOT(quit)); //...

trying to rebuild the [QtConcurrent::run] call ... as still generates error in compiling

Hello @ftylitak , I reached to below alternative code. logically it looks same as your intention? the timer shot is questionable ? my first conclusion it should be no less...

After some testing, below is more robust : ```cpp //decode(*image_ptr); QEventLoop evt; QFutureWatcher watcher; QTimer timer(this); timer.setSingleShot(true); QObject::connect(&watcher, &QFutureWatcher::finished, &evt, &QEventLoop::quit); QObject::connect(&timer, SIGNAL(timeout()), &watcher, SLOT(cancel())); QObject::connect(&timer, SIGNAL(timeout()), &evt, SLOT(quit)); QFuture...

Thanks for the valuable comment. it makes sense, im testing with the filter so far. I insisted on (delete) as otherwise the framed code gets decoded twice. But my impression...

I think that is a must and obvious to fix below runtime complains: ` W libPOS21_12.so: (null):0 ((null)): QObject: Cannot create children for a parent that is in a different...

Moved refactoring to [QZXingFilterRunnable] .... no more runtime complains! need to make sure its on track and does whats intended though! In In QZXingFilter.h ``` class QZXingFilterRunnable : public QObject,...

Giving up with timer ... (timer.start() , timer.stop() ), cant be synced with threads. switched to watcher timer ... `watcher.startTimer(100);`