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

QtQuick.Dialogs FolderDialog does not updates currentFolder

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.6
    • Quick: Dialogs
    • None
    • macOs 13.6.4 MacBook Pro 2017 15'' with TouchBar
    • macOS

    Description

      Good day,

      When the `currentFolder` variable is set to a value initially during the first run, it will open the corresponding path correctly. However, if you select a new path by choosing a new folder and accept it, the `currentFolder` variable will be updated to the new path. but next time you open it, it will revert to opening the initial path, disregarding the previously selected one.

       Below is a minimum reproduction code containing two FolderDialogs and column of two text elements, and two standard buttons. `currentFolder` is set initially to one of the Qt standard paths on both of dialogs. After running the application clicking on both buttons for the first time will trigger FolderDialog to popup with correctly set path. 

      By selecting folder and accepting it, text element will update `currentFolder` and the new path will be shown. If you open the same dialog again, the folder still appear unchanged. However, the value of the `currentFolder` variable has already been updated, as evidenced by its new value displayed in the text element

      After several attempts to set the new path (by accepting it) just stops updating at all.

       

      Attachments

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

        Activity

          People

            hurlevent Oliver Eftevaag
            duodargel.cordeperil Siarhei Darhel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes