Details
-
Bug
-
Resolution: Unresolved
-
P5: Not important
-
None
-
5.2.0 RC1
-
None
Description
Qt Quick Dialogs & FolderListModel on Android do not list directory content when a folder item is selected and result in an error when a target file is selected. This is because the folder property is no longer a QString but is now a QUrl.
The Dialogs FileDialog QML component on Android uses the Qt.labs.FolderListModel plugin and I think the issue comes from when the folder QUrl property is assigned from the filePath QString property.
A workaround is possible using the "file:///" + prefix. This prefix is also needed when the item is selected as follows:
function launch() {
if (folders.isFolder(index))
else
{ itemSelected("file:///" + filePath); }}
Attachments
Issue Links
- is required for
-
QTBUG-32039 FolderListModel needs to have API review, fix some API warts and be a maintained API instead of Qt.labs
-
- Reported
-
- relates to
-
QTBUG-120676 FileDialog does not open when pre-set to open Pictures Library in iOS
-
- Reported
-
-
QTBUG-44867 photosurface example doesn't work on ios
-
- Reported
-