QCamera bug when Macbook lid is closed
-
I might have experienced a QCamera bug when using Macbook's built-in camera:
When the laptop is open - all works. The camera object has
ActiveState
andActiveStatus
for the state and status respectively.When I close the lid but connect to an external screen - the camera doesn't start and doesn't capture anything, but QCamera still detects
ActiveState
andActiveStatus
.When I deny camera access from the setting - the same thing happens.
Is there any way to make it tell the difference between the normal case and when camera indeed failed to start due to closed lid or denied access?
-
Hi and welcome to devnet,
Which version of Qt are you using ?
On which version of macOS ?
Which laptop model are you using ? -
Can you check with a more recent version of Qt ?
For Qt 6, the multimedia module has seen a big rewrite so something may have changed.