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

Improve support for content URIs on Android

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • P3: Somewhat important
    • 5.15.1
    • 5.13.0
    • Extras: Android
    • None
    • Android
    • ac17e62f6512eed6e5c63263fab0bf3c896761aa (qt/qtbase/dev) bb1d888e8e4a38d48f3cfdf7dbc6f14647b12f04 (qt/qtbase/5.15)

    Description

      In 2c60844badd8fb07dd4844926345c924679f20fb, we added support for the native file dialog on Android. Since this file dialog returns content URIs and not local file paths, a file engine was added to support the scheme in 7d2d1eb9e051ad01dc5c5c3053c58364885bdc07, in order for the content URIs to be usable in all the relevant locations in Qt.

      However, since content URIs are not necessarily local file paths, no support was added for resolving the actual file name and path of the local file it represents. But for the paths returned by the file dialog, this would be case, so a useful addition would be if QFile returned the correct file name and path in the case where the URI did in fact represent a local file.

      The URIs that do not represent files would still return nothing from these functions, which is a bit confusing of course, but a side effect of the fact that Qt is designed to assume all content is provided through a traditional file system, and therefore QFile is at the core of everything.

      Attachments

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

        Activity

          People

            vkrause Volker Krause
            brutalwizard BrutalWizard
            Votes:
            4 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes