-
Bug
-
Resolution: Duplicate
-
P2: Important
-
None
-
5.14
-
None
QCamera::setViewfinderSettings does not expose frame rates
QCamera c;
c.load();
QObject::connect(&c,&QCamera::stateChanged,[&](QCamera::State s) {
if (s==QCamera::ActiveState)
qDebug() << ":="<<c.viewfinderSettings().maximumFrameRate()<<":"<<c.viewfinderSettings().minimumFrameRate();
});
QCameraViewfinderSettings sss = c.supportedViewfinderSettings()[0];
auto ss = c.viewfinderSettings();
qDebug() << ss.maximumFrameRate()<<":"<<ss.minimumFrameRate();
c.setViewfinderSettings(sss);
ss = c.viewfinderSettings();
qDebug() << ss.maximumFrameRate()<<":"<<ss.minimumFrameRate();
c.start();
https://developer.apple.com/documentation/avfoundation/avcapturedevice?language=objc
In macOS, a capture session can still automatically configure the capture format after you make changes. To prevent automatic changes to the capture format in macOS, follow the advice listed under the lockForConfiguration: method.
- duplicates
-
QTBUG-81048 macOS: enable to set FPS for QCamera
-
- Closed
-