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

FileDialog's selectedFile is wrong when going up a directory

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 6.5.0 Beta1
    • 6.2
    • Quick: Dialogs
    • None
    • cd62ba232a (qt/qtdeclarative/dev) cd62ba232a (qt/tqtc-qtdeclarative/dev)

      Steps to reproduce:

      1. Run code below
      2. Go into a directory
      3. Click the "up" arrow or press Alt+Up

      The expected behaviour is that the directory that you were previously in would be selected, but the actual behaviour is that a different directory is selected.

      import QtQuick
      import QtQuick.Controls
      import QtQuick.Dialogs
      
      ApplicationWindow {
          id: root
          width: 800
          height: 600
          visible: true
      
          FileDialog {
              visible: true
              currentFolder: "file:///tmp"
          }
      }
      

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

            mitch_curtis Mitch Curtis
            mitch_curtis Mitch Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: