Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.15.6
-
None
Description
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.