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

Two issues using content scheme to work with files

XMLWordPrintable

    • Android
    • f735cf7cd (dev), 60301fdfa (6.10), ee5c7d3f3 (6.9), 6562044d1 (tqtc/lts-6.8)
    • 2025wk30s2QtforAndroid, 2025wk32s2QtforAndroid

      Steps:

      1. I use QML FolderDialog to get access to a folder.
      2. I'm trying to create a file in this folder.

      First issue: QDir(folderPath).absoluteFilePath("file.txt") returns buggy path which can't be used with QFile. But, just folderPath+"/file.txt" works fine.

      Second issue: QFile(path).exists() always returns false. And, when I create a file and write to it, it appends " (1)" to the file name (in case a file with the same name exists already). So, I have no way to overwrite/remove existing file. Is it Qt or Android which appends this? Is it a bug or intended behavior?

        1. androidfiledlg.zip
          2 kB
          Alexander Dyagilev
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            assam Assam Boudjelthia
            alervd Alexander Dyagilev
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes