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

Android: QFileInfo::isWritable() returns false erroneously and throws an exception

XMLWordPrintable

    • Android
    • 42004d245 (dev), 471debef0 (6.8), b87645393 (6.7), fbeb34d58 (tqtc/lts-6.5), 632b9c4dc (dev), f735cf7cd (dev), b23ca07ec (6.10), 60301fdfa (6.10), 0f7d5f16e (6.9), ee5c7d3f3 (6.9), 1e1ff603a (tqtc/lts-6.8), 6562044d1 (tqtc/lts-6.8)
    • 2024wk48s3FOQtforAndroid, 2024wk50s3FOQtforAndroid, 2024wk52FOQtforAndroid, 2025wk26s2QtforAndroid, 2025wk30s2QtforAndroid, 2025wk32s2QtforAndroid

      On Andoid using QFileInfo::isWritable() returns false, even if the user has write permissions and writing files succeeds. Calling the QFileInfo::isWritable() seems to throw an exception as well.

      To reproduce the issue, run the attached example program and use the "Open" button to open native FolderDialog. Select a created directory (for example it has to be: /storage/emulated/0/FilePickerTest).

        1. qtbug_124011.zip
          19.78 MB
          Tuomas Vaarala
        2. qtbug_124011-working.zip
          71 kB
          Andrew Forrest
        3. qtbug-124011.log
          16 kB
          Jakub Motyczko
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            assam Assam Boudjelthia
            tuomas.vaarala Tuomas Vaarala
            Votes:
            6 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved: