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

QFileDialog.getFileNames returns incorrect/inconsistent between single and multiple selections

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 4.8.4
    • None
    • Kubuntu 11.04, Python 2.7, PYQT 4.10.?

    Description

      If you use QFileDialog.getFileNames() to select a single file with a '#' in its name it returns the file name & path correctly. Ie selecting a file called "#123.xml" returns a list with one item "#123.xml"

      However, use QFileDialog.getFileNames() to select multiple files with at lease one file with a '#' in its name and it returns the file name & path incorrectly. Ie selecting a file called "#123.xml" and a file called "abc.xml" returns a list with two items "%23123.xml" & "abc.xml" (Note the # has been changed in to a %23. Possible url encoding?)

      See http://pastebin.com/QcmkNcSk for example code. (Sorry, its in Python)

      Attachments

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

        Activity

          People

            peppe Giuseppe D'Angelo
            phillridout Philip Ridout
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes