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

QFileDialog::getOpenFileName doesn't handle files with quotation marks in their names

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15.3, 6.2.4, 6.10.0
    • None
    • QGIS 3.43 linked against Qt 5.15.3 running on Ubuntu Linux 22.04.5 LTS.
      Also Qt Widgets Designer for Qt 6.10.0 running on the same.
    • Linux/X11

    Description

      When a filename containing quotation marks is specified in a file selector the file name returned is not the one that was entered.  For example, entering this:

      /path/to/file with "quoted text" in name

      results in the following being returned:

      /path/to/quoted text

      I encountered the issue when creating a new file; in other words, the file name provided did not yet exist.

      This same issue was reported earlier but was closed because it was reported for Qt 4, not Qt 5 or 6: QTBUG-10518

       

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            alexkent Alex Kent
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes