Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.6.0
-
-
e44506750 (dev), 54ed65891 (6.9), c659fcc48 (6.8), 8af3c1f9b (tqtc/lts-6.5)
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
- relates to
-
QTBUG-83089 NameFilters not working in FileDialog in Android 10
-
- Closed
-