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

File dialogs (C++ and QML) don't support selections of folders on BB10

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Won't Do
    • Affects Version/s: 5.2.0 Beta1
    • Fix Version/s: 5.3.0 Beta1
    • Labels:
    • Environment:
      Blackberry Z10, Software: 10.2.1.176, Qt5.2.0 Beta1(built with NDK 10.1)
    • Commits:
      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:

      { var urls = fileDialog.fileUrls console.log(urls) }

      }
      MouseArea

      { anchors.fill: parent onClicked: fileDialog.open() }

      }

      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.

        Attachments

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

          Activity

            People

            • Assignee:
              bweimer Bernd Weimer
              Reporter:
              vminenko Vladimir Minenko
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes