Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-130850

[iOS] Document how to get a CMake project to use the native photo picker

    XMLWordPrintable

Details

    • iOS/tvOS/watchOS
    • framework-content 1

    Description

      qmake automatically scans the Info.plist file to see if the project needs to link to libqiosnsphotolibrarysupport.a, and does the linking automatically if required: https://doc.qt.io/qt-6/ios-platform-notes.html#native-image-picker

       

      CMake currently lacks such a mechanism, so users would need to manually link the plugin:

      qt_import_plugins(mytarget INCLUDE Qt6::QIosOptionalPlugin_NSPhotoLibraryPlugin)
      

      (source: semlanik at https://bugreports.qt.io/browse/QTBUG-130845?focusedId=838080&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-838080 )

      This should be documented.

      The usage of this command is similar to what users need to do for FFmpeg libraries on iOS:
      https://doc.qt.io/qt-6/qtmultimedia-apple.html#use-of-ffmpeg-libraries-on-ios

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              lexcaz Alexei Cazacov
              skoh-qt Sze Howe Koh
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes