-
Bug
-
Resolution: Invalid
-
P2: Important
-
None
-
6.5.0, 6.8.2
-
-
2025wk08s1QtforAndroid
I ported my app to Qt6 and I encountered this issue in Android.
When an image is captured, the preview property for ImageCapture is locked to one capture behind.
Below are the content of preview property when I trigger capture():
- 1st trigger => empty (Image viewer will show black)
- 2nd trigger => image://camera/preview_0 (Image viewer will show the previous image)
- .. and so on
CaptureSession { camera: id_camera imageCapture: id_imageCapture videoOutput: id_viewFinder } Camera { id: id_camera active: true } ImageCapture { id: id_imageCapture onImageCaptured: function (requestId, previewImage) { console.log(preview) } } Image { id: id_imagePreview source: id_imageCapture.preview } VideoOutput { id: id_viewFinder MouseArea { anchors.fill: parent onClicked: id_imageCapture.capture() } }