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

getExistingDirectory does not always respect the default directory on Mac OSX

    XMLWordPrintable

Details

    • macOS

    Description

      On OSX (at least on 10.5) it appears QFileDialog::getExistingDirectory does not observe the default directory passed to the function. For example:

      QString defaultLocation = "/tmp";
      defaultLocation = QFileDialog::getExistingDirectory(NULL, "Choose Location", defaultLocation, QFileDialog::ShowDirsOnly );

      does not default to the /tmp directory on various machines, where it instead defaults to the Desktop directory. The other QFileDialog static functions handle default filenames just fine.

      Attachments

        1. FileDialogIssue.zip
          3 kB
          Sébastien Léon

        Issue Links

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

          Activity

            People

              vfm Thierry Bastian (closed Nokia identity) (Inactive)
              vhilshei Volker Hilsheimer
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes