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

research and implement the file interchange story on iOS 8 and Android

    XMLWordPrintable

Details

    • iOS/tvOS/watchOS

    Description

      https://developer.apple.com/library/ios/documentation/FileManagement/Conceptual/DocumentPickerProgrammingGuide/AccessingDocuments/AccessingDocuments.html#//apple_ref/doc/uid/TP40014451-CH2-SW4

      It's now possible for one application to access files that belong to another, but there are some security restrictions which make application platform portability difficult. So it is not clear yet what needs to be done to make the best use of QFileDialog or QtQuick.Dialogs FileDialog in an iOS application, or if that's even a suitable paradigm. But the document picker on iOS does actually look like a file dialog, and it's interesting that it also provides access to content stored in iCloud:

      https://developer.apple.com/library/ios/documentation/FileManagement/Conceptual/DocumentPickerProgrammingGuide/Introduction/Introduction.html

      At this time it seems like one way forward would be
      1) implement QPlatformFileDialogHelper for iOS, to use UIDocumentPickerViewController
      2) augment QFile to call startAccessingSecurityScopedResource only when necessary

      or maybe that will turn out to have unavoidable pitfalls.

      There are also older ways of sharing files between applications, usually by accessing the content in its "owner" application and somehow "sending" it to another application. Those don't map as well to the use of a file dialog, but maybe we need some sort of Qt API which works at least across iOS and Android, or maybe interoperates with drag-and-drop on desktop platforms, or something like that.

      Attachments

        Issue Links

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

          Activity

            People

              vestbo Tor Arne Vestbø
              srutledg Shawn Rutledge
              Veli-Pekka Heinonen Veli-Pekka Heinonen
              Votes:
              9 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes