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

FileDialog doesn't return a FilePath

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.1.0 RC2
    • 5.1.0 RC1
    • Quick: Dialogs
    • None
    • Windows XP SP3, Qt5.1 RC1 (binary installer), MinGW 4.8 32Bit, Linux
    • 74438ef7c14f19cecda0910a122eb8887dab649d

    Description

      "filePath"-property and "filePaths"-property return "undefined" instead of a FilePath. "folder"-property works fine.

      Edit1: Example

      import QtQuick 2.1
      import QtQuick.Dialogs 1.0
      
      Rectangle {
          width: 360
          height: 360
      
          FileDialog {
              id: openDialog
              title: qsTr("Yet another WinXP-fail-example")
              selectExisting: true
              visible: true
      
              onAccepted: {
                  console.log("")
                  console.log("filePaths: " + openDialog.filePaths)
                  console.log("filePath: " + openDialog.filePath)
                  console.log("flder: " + openDialog.folder)
              }
          }
      }
      

      Output: (native Dialog)

      filePaths: undefined
      filePath: undefined
      flder: C:/
      

      Attachments

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

        Activity

          People

            srutledg Shawn Rutledge
            andluft Andreas Luft
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes