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. How to get iOS to include camera permission (Solved)
QtWS25 Last Chance

How to get iOS to include camera permission (Solved)

Scheduled Pinned Locked Moved Mobile and Embedded
ioscameraopengl under qm
4 Posts 3 Posters 2.6k Views
  • 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.
  • T Offline
    T Offline
    teamAR
    wrote on 10 Mar 2015, 13:07 last edited by teamAR
    #1

    I've implemented the Scene Graph - OpenGL Under QML example, and include a camera feed which I will overlay Augmented Reality content using OpenGL. Everything works fine under Android, but I have no camera input under iOS. On the iPhone's settings for the app, i have Location enabled, but no Camera. In xCode developed apps when I've asked for the camera, iOS automatically asked for permission and included the response in the app's settings. It's not doing this under Qt, and entirely deleting the app from the iPhone hasn't solved the issue. I don't see any options in info.plist, and there's no manifest like there is for Android.

    I'm thinking this is something very simple that I'm overlooking... any suggestions?

    Chuck

    1 Reply Last reply
    0
    • T Offline
      T Offline
      teamAR
      wrote on 25 Mar 2015, 21:18 last edited by
      #2

      Turns out that the iOS.pri file needs to have the following line added:

      QTPLUGIN += qavfcamera

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 25 Mar 2015, 22:16 last edited by
        #3

        Hi,

        Since Qt for iOS is currently a static build, each plugin you would like to use must be specified like you did for qavfcamera

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        G 1 Reply Last reply 28 Aug 2023, 12:45
        1
        • S SGaist
          25 Mar 2015, 22:16

          Hi,

          Since Qt for iOS is currently a static build, each plugin you would like to use must be specified like you did for qavfcamera

          G Offline
          G Offline
          Grigg_23
          wrote on 28 Aug 2023, 12:45 last edited by
          #4
          This post is deleted!
          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