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

[REG: OSX 10.10 -> OSX 10.11] Mac: getOpenFileName does not respect the directory passed to it.

    XMLWordPrintable

Details

    • macOS
    • 2f115fbe0f2ccc0ad25a77c9612588ace9340228

    Description

      In example code below, first call to getOpenFileName with a single filter opens properly the dialog with Applications location as working directory, but second call with multiple filters opens the dialog in the same Application directory instead of Documents location as expected.

      QString applicationsPath(QStandardPaths::standardLocations(QStandardPaths::ApplicationsLocation).first());

      QString documentsPath(QStandardPaths::standardLocations(QStandardPaths::DocumentsLocation).first());

      QFileDialog::getOpenFileName(this, "Simple Filter Test", applicationsPath, "All files ");

      QFileDialog::getOpenFileName(this, "Multiple Filters Test", documentsPath, "Text files (*.txt);;All files ");

      NOTE:
      This was working fine in OS X 10.10 and older and the issue can be only reproduced with OS X 10.11

      Attachments

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

        Activity

          People

            sorvig Morten Sørvig
            qtcomsupport Qt Support
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes