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

Android:QFiledialog doesn't show folders until path is explicitly specified.

    XMLWordPrintable

Details

    • Android

    Description

      On Android 6.0 or above QFileDialog only shows only inside app folder even if runtime permission is granted.(I used patch in QTBUG-50759)

       

      QFileDialog::getExistingDirectory(NULL,"",QDir::homePath());
      

      shows only /data under / and there's no way to select folder in sdcard.

      but

      QFileDialog::getExistingDirectory(NULL,"","/storage");

      shows some folders including sdcard.
      and if I go up to / , /data and /storage is shown.

      The attached project demonstrates the behavior described above.

      Attachments

        1. 5.12.10vs5.15.2LTS.PNG
          5.12.10vs5.15.2LTS.PNG
          229 kB
        2. permissiontest_5_15.zip
          38 kB
        3. permissiontest.zip
          41 kB
        4. qtbug62619.zip
          2 kB
        5. storages.png
          storages.png
          59 kB
        For Gerrit Dashboard: QTBUG-62619
        # Subject Branch Project Status CR V

        Activity

          People

            mateusz_sobal Mateusz Sobal
            eighttails Tadahito Yao
            Votes:
            4 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There is 1 open Gerrit change