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

Two issues using content scheme to work with files

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.5.1, 6.6.0 Beta1
    • QPA: Android
    • None
    • Android 11
    • Android

    Description

      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?

      Attachments

        1. androidfiledlg.zip
          2 kB
          Alexander Dyagilev

        Issue Links

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

          Activity

            People

              qtandroidteam Qt Android Team
              alervd Alexander Dyagilev
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes