Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-121523

QCamera - setFocusMode() does not change focusMode

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: P2: Important P2: Important
    • None
    • 6.6.1
    • Multimedia
    • None
    • Linux/Wayland, Windows

      Corresponds to PySide issue https://bugreports.qt.io/browse/PYSIDE-2593. I was able to verify the same in C++ as well.

      #include <QMediaDevices> 
      #include <QCamera>
      
      int main(int argc, char *argv[]) { 
      auto available_cameras = QMediaDevices::videoInputs(); 
      auto camera_info = available_cameras[0]; 
      auto camera = QCamera(camera_info); camera.setFocusMode(QCamera::FocusMode::FocusModeManual); 
      auto test = camera.focusMode(); 
      };

      setFocusMode() retursn FocusModeAuto instead of FocusModeManual

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qtmultimediateam Qt Multimedia Team
            shpremna Shyamnath Premnadh
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes