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

qt.labs.platform.FileDialog folder property doesn't work

    XMLWordPrintable

Details

    • Linux/X11
    • 196dcb8d095cc2b5ace5a55bc3c8a1055267c070 (qt/qtquickcontrols2/5.12)

    Description

          FileDialog {
              visible: false
              id: fileDialog
              title: "Choose a GeoJSON file"
              fileMode: FileDialog.OpenFile
              property var standardPicturesLocations: StandardPaths.standardLocations(StandardPaths.PicturesLocation)
              folder: standardPicturesLocations[standardPicturesLocations.length - 1] //dataPath
              Component.onCompleted: console.log(folder)
              onAccepted: {
                  geoJsoner.load(fileDialog.fileUrl)
              }
          }
      

      output:

      QML debugging is enabled. Only use this in a safe environment.
      qml: file:///home/paolo/Pictures
      Threaded rendering is not optimal in the Mapbox GL plugin.
      

      effect: see screenshot

      Attachments

        Issue Links

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              paangele Paolo Angelelli
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: