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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.15.2, 6.2.0
    • Fix Version/s: None
    • Component/s: Quick: Dialogs
    • Labels:
      None
    • Environment:
    • Platform/s:
      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

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

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes