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

QFileDialog::getSaveFileName() does not append the file extension of the selected filter (QWidget-based, non-native)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • 5.0.0 Beta 2
    • 5.0.0 Beta 1
    • None
    • Ubuntu 12.04 64-bit
      Windows 7 64-bit
    • Windows/native: bf55c0ac3b9c4ab8ab900ebdf2347faa1f17e12b (qtbase/master, 4.10.2012, 5.0 beta2)

    Description

      In Qt 4.8.1 (and probably earlier), QFileDialog::getSaveFileName() appended the file extension (i.e. the currently selected filter) to the file name returned. In Qt 5.0, the extension is not appended. This change isn't mentioned in the documentation. Personally, I believe it's more intuitive to have the extension appended.

      I've tested it on Windows and Linux.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-27186
          # Subject Branch Project Status CR V

          Activity

            People

              kleint Friedemann Kleint
              mitch_curtis Mitch Curtis
              Votes:
              12 Vote for this issue
              Watchers:
              15 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There is 1 open Gerrit change