> Am 07.07.2015 um 13:28 schrieb Harri Pasanen <ha...@mpaja.com>:
> 
>> On 07/07/2015 12:53, Till Oliver Knoll wrote:
>> 
>> 
>> Am 07.07.2015 um 10:50 schrieb Daniel França <daniel.fra...@gmail.com>:
>> 
>>> Thanks for the answer.
>>> It seems that we still need to mix with native Cocoa code :( 
>>> https://forum.qt.io/topic/41071/solved-how-to-store-a-qimage-to-ios-camera-roll-photo-album/3
>>> https://forum.qt.io/topic/45295/solved-accessing-ios-photo-folder/5
>> 
>> I haven't read the forum entry linked above, but in general your (iOS) 
>> application needs special permission from the OS to access the "Photos" 
>> folder (unlike on desktop, where its sufficient to set the 
>> com.apple.security.assets.pictures.read-only Entitlement - once you have 
>> that set, your sandboxed Mac application may access files in the Pictures 
>> folder with traditional file IO, that is QFile etc.). (*)
>> 
>> That permission needs to be explicitly asked for by the application, by 
>> calling the proper APIs (and Qt does not yet provide a wrapper API for 
>> those, so I understand).
>> 
>> QStandardPaths just tells you where the location of "Pictures" is - once 
>> your application has the permission from iOS. (On Android similar/the same, 
>> I guess).
>> 
> It does not work like you describe on iOS.

Well, I described how it works on OS X ("Entitlements").

I have no clue how it works on iOS (besides that a user explicitly needs to 
grant permission for an iOS app to access the Pictures folder) ;)

Cheers,
  Oliver
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to