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

OS X QFileDialog::getSaveFileName doesn't allow selection of file with extensions like .tar.gz

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.3.1, 5.4.0
    • 4.8.5, 5.3.0 Beta1, 5.12, 5.15
    • GUI: Workspace
    • None
    • OS X 10.8.5, 10.9.2
    • macOS
    • 5d9d3ff3269f92366b022e17485fa4dd98f5ba95 (qt/qtbase/5.15)

      When using QFileDialog::getSaveFileName with a filter looking like:

      "Archives (*.tar.gz *.zip")"

      The native dialog doesn't allow to select the tar.gz files. AFAIK it's a limitation of NSSavePanel that doesn't support double extensions.

      Should we workaround that and build the list using only the last extension so in this case "gz" and "zip" and document the behavior ?
      Or just update the documentation and explain the limitation on OS X ?

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

            vestbo Tor Arne Vestbø
            sgaist Samuel Gaist
            Votes:
            10 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes