Details
-
Bug
-
Resolution: Invalid
-
P2: Important
-
None
-
5.3.0 Beta1
-
None
-
Windows 7 64bits
Qt Android for Windows 32-bit 5.3.0-beta1 (Enterprise)
Device : Samsung Galaxy Note 3 (4.3)
Description
All issues are about the declarative-camera example. Build it, execute on device and take a picture.
1) Unknown method parameter
Without changing the example code, I get 2 warnings :
W/Qt (19211): qrc:///VideoCaptureControls.qml:74 ((null)): qrc:///VideoCaptureControls.qml:74: Error: Unknown method parameter type: QDeclarativeCamera::FocusMode W/Qt (19211): qrc:///PhotoCaptureControls.qml:74 ((null)): qrc:///PhotoCaptureControls.qml:74: Error: Unknown method parameter type: QDeclarativeCamera::FocusMode
--------------------------
2) Wrong Path
After changing PhotoCaptureControls.qml and declarative-camera.qml to use the onImageSaved slot, the path variable use "qrc://"
And I get:
W/Qt (24357): qrc:///PhotoPreview.qml:48 ((null)): qrc:///PhotoPreview.qml:48:5: QML Image: Cannot open: qrc:///storage/emulated/0/DCIM/pictureTaken.jpg
For that :
In PhotoCaptureControls.qml, replace line 80 by :
onClicked: camera.imageCapture.captureToLocation("pictureTaken.jpg")
In declarative-camera.qml, replace line 89 by:
imageCapture { onImageSaved: { photoPreview.source = path stillControls.previewAvailable = true cameraUI.state = "PhotoPreview" } onImageCaptured: { //photoPreview.source = preview //stillControls.previewAvailable = true //cameraUI.state = "PhotoPreview" } }
----------------------------
3) GL_INVALID_VALUE from an image created and saved by Camera.
By replacing the "qrc://" by "file://" in onImageSaved slot, I get this error:
W/Adreno-ES20(25493): <core_glTexImage2D:514>: GL_INVALID_VALUE W/GLConsumer(25493): [unnamed-25493-1] bindTextureImage: clearing GL error: 0x501
For that :
In declarative-camera.qml, replace "photoPreview.source = path" by :
photoPreview.source = "file:///storage/emulated/0/DCIM/pictureTaken.jpg"