Details
-
Bug
-
Resolution: Won't Do
-
P1: Critical
-
5.2.0 Beta1
-
Blackberry Z10, Software: 10.2.1.176, Qt5.2.0 Beta1(built with NDK 10.1)
-
7591abbe0402d7fcb6305728c1456c1e148d1c40
Description
Example Code:
import QtQuick 2.0
import QtQuick.Dialogs 1.0
Rectangle {
width: 200
height: 200
FileDialog {
id: fileDialog
title: "MyTitle"
selectFolder: false
selectMultiple: false
onAccepted:
}
MouseArea
}
If I set selectFolder to true, I still can only choose files
The above sample and the report originate from QTBUG-34983, which was closed since most of other issues mentioned in the report were resolved by https://codereview.qt-project.org/#change,80316.
The issue with not being able to select folder remains and goes down to the fact the underlying BB10 FilePicker implementation does not suppor selection of folders right now. This is reported internally in BlackBerry as a missing feature. No ETA know as for now. So it remains a known issue of Qt5 on BB10. A possible workaround in an app would be to ask a user to select one file from a folder and then get the folder name from this file.