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

Replace usage of AssetsLibrary framework with PhotoKit on iOS

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 5.15.6
    • QPA
    • None
    • iOS/tvOS/watchOS

      As mentioned in these issues starting with iOS 17 asset library urls are no longer accepted. Hence loading a QImage with an asset library url like this one fails :

      assets-library://asset/asset.HEIC?id=0D2ADB24-6C3A-4704-A7FA-5789854EB627&ext=HEIC

      https://bugreports.qt.io/browse/QTBUG-64074

      https://bugreports.qt.io/browse/QTBUG-126438

      The replacement is to use the iOS PhotoKit APIs. To work around the issue it is possible to extract the GUID of the asset url link and provide it to the photo kit API: https://developer.apple.com/documentation/photokit/phasset/1624732-fetchassetswithlocalidentifiers?language=objc

      But ideally, we'd want all components including QML FileFolder/Qt QFileDialog to return the photokit compatible PHAsset local identifiers which can be provided to QImage to load that asset.

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

            tpochep Timur Pocheptsov
            nandinirao Nandini
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes