Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.3.2, 5.4.0
-
LG L7II on Android 4.1.2
-
-
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.