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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.2.1
    • None
    • Mac OS X Mavericks
    • macOS

      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)"));

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes