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

QML Camera component does not searchAndLock on Android

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.3.2, 5.4.0
    • Fix Version/s: 5.5.0
    • Component/s: Multimedia
    • Labels:
    • Environment:
      LG L7II on Android 4.1.2
    • Platform/s:
      Android
    • Commits:
      dc2fec1bd8974d695d9c22d4b958a73bbe9ff1a2

      Description

      The QML Camera does not focus on Android when camera.searchAndLock is called.

      Here is a QtQuick example to test the issue. It starts the camera which will focus on a single click and will capture an image on a double click.

      It captures images as usual but on Qt 5.4.0 beta it does not focus. It used to focus on Qt 5.3.1, though:

      import QtQuick 2.0
      import QtMultimedia 5.3
      
      Rectangle {
          width: 800
          height: 480
          color: black
      
          Camera {
              id: camera
              videoRecorder {
                  resolution: "640x480"
                  frameRate: 30
              }
          }
      
          VideoOutput {
              anchors.fill: parent
              source: camera
              autoOrientation: true
      
              MouseArea {
                  anchors.fill: parent;
                  onClicked: camera.searchAndLock() //!! not working on Qt 5.4.0 beta
                  onDoubleClicked: camera.imageCapture.capture()
              }
          }
      }
      

      EDIT 01/07/2015: The bug was not introduced by Qt-5.4.0 but already with Qt-5.3.2. Currently, the latest Qt version with a working QML camera module is Qt-5.3.1.

        Attachments

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

          Activity

            People

            Assignee:
            ylopes Yoann Lopes
            Reporter:
            roettger Stefan Roettger
            Votes:
            3 Vote for this issue
            Watchers:
            8 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes