Different behaviour of QT6 when changing camera resolution on Windows/Linux
-
Hi,
Im able to change camera resolution dynamically on QT6 but the behavior is different on WIndows and Linux, below is the detailWindows
-
After instantiating QCamera with some default resolution
-
Calling setCameraFormat to set for new resolution
-
I will need to call Camera stop and start in order for it to take effect.
Linux (On Unbuntu 20.04)
-
After instantiating QCamera with some default resolution
-
All i need is calling setCameraFormat to set for new resolution and it will take effect.
What is the proper/unified workflow when you want to change camera resolution dynamically (eg, after QCamera is already instantiated)? thanks
-
-
Hi,
Which version of Qt 6 would that be ?
Since 6.5, the default has changed to the new ffmpeg backend. Before that, it was the native backend which could have different behavior on some details.
-
sorry for the late response, this was tested on both 6.4.3 and 6.5.1 and its the same for both version.
Sounds like either you found an inconsistent behaviour or the documentation is missing information.
I would suggest to check the bug report system to see if it's something known and if not, please open an issue about it.