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

QFileDialog static functions (getOpenFileUrl, etc.) could try to stay in the same dir if dir is not given

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.5.0 FF
    • None

    Description

      Related to QTBUG-106385 and https://codereview.qt-project.org/c/qt/qtwebengine/+/431180/2: another reason not to use the static APIs is that if the user tries to open a file, and fails, the user would probably like to try again, and stay in the same directory where it was last time. But if the application provides a directory, it's going to start at that directory; and if it's not given, what's the default directory then? It's not documented. I think if the argument QUrl dir = QUrl() is left as the default-constructed one, then it's Qt's job to be reasonable about this: remember the last directory where the user left it, and go there again the next time.

      The overall goal is to have getOpenFileUrl() et al. working well enough that we can use them in our own examples again, and recommend them to users.

      Attachments

        Issue Links

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

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              srutledg Shawn Rutledge
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes