[Development] Camera service missing on iOS (latest 5.2RC1)

ynon perek ynonperek at gmail.com
Mon Dec 2 23:09:59 CET 2013


Solved by adding the following to my .pro file:
QT += multimedia
QTPLUGIN += qavfcamera





On 2 December 2013 23:14, Ynon Perek <ynonperek at gmail.com> wrote:

>  Hi All,
>
> I tried to run the following QML on my iPhone 5, and got the error:
> defaultServiceProvider::requestService(): no service found for -
> "org.qt-project.qt.camera"
> Camera error: "The camera service is missing”
>
> Qt version is 5.2 RC1. The code works well on my laptop.
>
> Any ideas ?
>
>
> import QtQuick 2.0
>
> import QtMultimedia 5.0
>
> import QtQuick.Controls 1.1
>
>
> VideoOutput {
>
>     source: camera
>
>
>     Camera {
>
>         id: camera
>
>
>         imageCapture {
>
>             onImageSaved: {
>
>                 console.log(path)
>
>             }
>
>         }
>
>     }
>
>
>     MouseArea {
>
>         anchors.fill: parent;
>
>         onClicked: {
>
>             camera.imageCapture.capture();
>
>         }
>
>     }
>
> }
>
>
> Thanks,
>
>   Ynon
>
>
>
>


-- 

כותב הרצאות ? מדבר מול קהל ? הבלוג שלי לומד
לדבר<http://publicspeakr.blogspot.com/>כתוב במיוחד בשבילך.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20131203/654640ed/attachment.html>


More information about the Development mailing list