I placed the Camera and the QZXingFilter in a Component, loaded by a Loader.
If I pass it to the Loader directly in the sourceComponent property, the camera is loaded when the application starts and the QZXingFilter decodes the QRCodes, it works fine.
But if I load it after a button click, for example, I get a black screen and these errors:
I ViewRootImpl@4d42ac6[QtActivity]: ViewPostIme pointer 0
D InputMethodManager: HSIFW - flag : 0
I InputMethodManager: hideSoftInputFromWindow ignore mServedView == null or mServedView.getWindowToken() != windowToken, mServedView :DecorView@68adeb5[QtActivity]
I ViewRootImpl@4d42ac6[QtActivity]: ViewPostIme pointer 1
D SensorManager: registerListener :: 11, lsm6dsm Accelerometer Non-wakeup, 200000, 0, android.view.OrientationEventListener$SensorEventListenerImpl@d52e84d
W Gralloc4: allocator 3.x is not supported
W Gralloc3: allocator 3.x is not supported
W [SurfaceTexture-4-28300-0] bindTextureImage: clearing GL error: 0x500
D QZXingFilter error: Cant create image file to process.
D QZXingFilter error: Cant create image file to process.
D QZXingFilter error: Cant create image file to process.
D QZXingFilter error: Cant create image file to process.
D QZXingFilter error: Cant create image file to process.
D QZXingFilter error: Cant create image file to process.
D QZXingFilter error: Cant create image file to process.
D QZXingFilter error: Cant create image file to process.
D QZXingFilter error: Cant create image file to process.
Qt 6.4.2 QZXing 3.3 Android 11
I placed the Camera and the QZXingFilter in a Component, loaded by a Loader. If I pass it to the Loader directly in the sourceComponent property, the camera is loaded when the application starts and the QZXingFilter decodes the QRCodes, it works fine.
But if I load it after a button click, for example, I get a black screen and these errors:
Here is a simple code to reproduce: