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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15.2, 6.2.0
    • Quick: Dialogs
    • None
    • macOS

    Description

      Steps to reproduce:

      1 Click on main window -> file dialog will be opened in folder

      StandardPaths.writableLocation(StandardPaths.PicturesLocation)

      2 Chose any file in other directory, and push the open button

      3 Click on main window -> file dialog will be opened

      Expected result: 

      File dialog will be opened in folder which set using folder property, in current example this is last accepted folder

       

      Actual result:

      File dialog always opens in StandardPaths.writableLocation(StandardPaths.PicturesLocation) 

      Logs from example: 

      QML debugging is enabled. Only use this in a safe environment.
      qml: File dialog will be opened in folder = file:///Users/user/Pictures , last opened folder = file:///Users/user/Pictures
      qml: onAccepted: lastopenedFolder = file:///Users/user/Documents
      qml: File dialog will be opened in folder = file:///Users/user/Documents , last opened folder = file:///Users/user/Documents
      qml: onAccepted: lastOpenedFolder = file:///Users/user/Downloads
      qml: File dialog will be opened in folder = file:///Users/user/Downloads , last opened folder = file:///Users/user/Downloads

       

      Possible related issues:

      https://bugreports.qt.io/browse/QTBUG-46270

      https://bugreports.qt.io/browse/QTBUG-73179

       

      Attachments

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

        Activity

          People

            vestbo Tor Arne Vestbø
            evgenpervenenko Evgen Pervenenko
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes