Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. [Solved] QCamera iOS
Forum Updated to NodeBB v4.3 + New Features

[Solved] QCamera iOS

Scheduled Pinned Locked Moved Mobile and Embedded
qcameraios
3 Posts 2 Posters 2.0k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    LuGRU
    wrote on last edited by LuGRU
    #1

    Hello,
    I'm working on iOS (and Android) Widget base application and I run into strange problem (here is one of them, because Camera support for embedded is minefields).

    Situation: code contains only QCamera and QVideoWidget to display image from camera.

    When application is run on iOS access to "Camera" is asked - that's natural, but just after that access to the "Microphone" is asked.

    That's not really a problem but it becomes a problem when dev. wants to put application into AppStore - app review will most likely reject (and they do) because application request access to the device and don't use that device.

    Now question - AFAIKT non of QCamera nor QVideoWidget has any option related (at least directly) to the Microphone / sound - so how to remove this permission request?

    I have test project on my mac but code looks more or less like this:

        QCamera* cam = new QCamera( QCamera::FrontFace, this);
        cam->setViewfinder( videoWidget); // QVideoWidget added earlier into layout
        cam->load();
        cam->start();
    

    Thanks for help.
    Best regards

    Update: This issues is recognized as Qt bug and is already fixed (should be available in Qt 5.4.2 and 5.5++).

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by A Former User
      #2

      Hi,

      Android:
      In your AndroidManifest.xml, there should be a <!-- %%INSERT_PERMISSIONS --> comment. Replace this by <uses-permission android:name="android.permission.CAMERA" />. This should do the trick, but I can't test it right now.

      iOS:
      Don't know.

      1 Reply Last reply
      0
      • L Offline
        L Offline
        LuGRU
        wrote on last edited by LuGRU
        #3

        Thanks for the reply.
        I should be more specific, my bad.
        Minimum Qt that I need to use is Qt 5.4.1. Os iOS - something around 6.

        Situation QCamera class on embedded is badly broken
        Android - it doesn't work at all in current Qt version - issue started around version Qt 5.0 - 5.1, maybe earlier and is not fixed including current version
        iOS - QCamera do work - but when QCamera object is created access to the Camera (that's ok) and Microphone (that's not ok) is asked. When application is submitted to the AppStore it will be rejected if application don't use Microphone.

        I'm now just wondering if someone stumbled upon this problem and found workaround because obviously proper fix is modifying qpa for QCamera.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved