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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 5.2.1
    • None
    • Mac OS X Mavericks
    • 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

              peppe Giuseppe D'Angelo
              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