Details
-
Bug
-
Resolution: Out of scope
-
Not Evaluated
-
None
-
6.4.2
-
None
Description
I use QCamera, QMediaCaptureSession and QImageCapture objects to capture images from the camera. My code captures an image when camera is ready for it.
But I noticed that QImageCapture.readyForCaptureChanged signal is called only once on Windows platform - just after QCamera.start(). Then it isn't called even if camera state is changed.
Attached is a small example that triggers QImageCapture.capture() after button push. And it outputs how readyForCapture state is changed.
Here is an output from Linux. You may see output "READINESS CHANGE" from on_ready event handler for readyForCaptureChanged signal:
READYNESS CHANGE: True
CAMERA READY STATE (1): True
READYNESS CHANGE: False
READYNESS CHANGE: True
CAMERA READY STATE (2): True
Captured 1
CAMERA READY STATE (1): True
READYNESS CHANGE: False
READYNESS CHANGE: True
CAMERA READY STATE (2): True
Captured 2
And below is an output from Windows. You may see that camera state changes but there are no output "READINESS CHANGE" from on_ready event handler for readyForCaptureChanged signal:
READYNESS CHANGE: True
CAMERA READY STATE (1): True
CAMERA READY STATE (2): False
Captured 0
CAMERA READY STATE (1): True
CAMERA READY STATE (2): False
Captured 1