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

Mac OSX: QFileDialog's name filter not working as expected

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Duplicate
    • Affects Version/s: 5.2.1
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Mac OS X Mavericks
    • Platform/s:
      macOS

      Description

      I am trying to set the filter used in a file dialog. The filter seems to work fine except for the extension '.nii.gz'. On Mac OS X (Mavericks), all files with extension '.nii.gz' are grayed out. Any idea what's wrong? Thanks!

      QFileDialog fileDialog;

      QString fileName =
      fileDialog.getOpenFileName(NULL,
      tr("Open File"), "",
      tr("Images (*.nii.gz *.nii *.mha *.mhd *.nrrd *.nhdr)"));

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              peppe Giuseppe D'Angelo
              Reporter:
              timyap Tim Yap
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes