Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Selecting a specific camera when multiple 'lenses' are present
DaveK 0 last edited by DaveK 0
For devices where there are multiple cameras on the same face (IE- an iPhone 12 has three rear-facing cameras: wide (0.5x), normal (1x), and telephoto (2.5x)) how can I select one of the cameras other than the default (1x)?
const QList<QCameraInfo> cameras = QCameraInfo::availableCameras();Only returns two cameras on the iPhone (one front, one rear) even though there are really four (one front, three rear). When creating a
QCameraInforeturned for the rear camera, by default instantiates using the 1x camera/lens.
While the rear camera is selected
QCameraFocus::zoomTowill increase the digital zoom of the camera, but changing the optical zoom has no effect.
1.0for the rear camera as well.