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

Qt.labs.platform.FileDialog currentFile property causes extra '/' in filename

    XMLWordPrintable

Details

    Description

      Below is a example of the issue.

       

      Create a Labs FileDialog and specify a filename to pre-populate and it will prepend a '/' to the name when the file dialog opens.

      The ability to add a selected file is one of the main reasons to use the labs version in the first place so it would be really nice if this worked.

       

      import QtQuick 2.10
      import QtQuick.Window 2.10
      import Qt.labs.platform 1.0
      
      Window {
          visible: true
          width: 640
          height: 480
          title: qsTr("Hello World")
      
          FileDialog {
              Component.onCompleted: open()
      
              fileMode: FileDialog.SaveFile
      
              currentFile: "export.csv"
          }
      }
      

       

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            Dynite Michael Cox
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes