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

FileDialog doesn't return a FilePath

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.1.0 RC1
    • Fix Version/s: 5.1.0 RC2
    • Component/s: Quick: Dialogs
    • Labels:
      None
    • Environment:
      Windows XP SP3, Qt5.1 RC1 (binary installer), MinGW 4.8 32Bit, Linux
    • Commits:
      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

            Assignee:
            srutledg Shawn Rutledge
            Reporter:
            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