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

Clarify handling of FileDialog.nameFilter on Android

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.6.0
    • Quick: Controls 2
    • None
    • Android

    Description

      It seems that, when FileDialog.nameFilter is set, the native Android file dialog doesn't show any files - regardless of whether some would match the current filter or not. See qtbug-114957.7z for a simple application that should be able to list an *.mp4 file.

      The QFileDialog::setNameFilter documentation actually mentions that Android file dialog by default doesn't allow suffix based filtering, but hints to a workaround:

      Note: With Android's native file dialog, the mime type matching the given name filter is used because only mime types are supported.

      Anyhow, it is unclear whether the same logic applies to QtQuick.Controls::FileDialog, and how a filter needs to be written so that it has a 'matching' mime type.

      Attachments

        Issue Links

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

          Activity

            People

              assam Assam Boudjelthia
              kkohne Kai Köhne
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes