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

QFileDialog filter containing parentheses results in no files being displayed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3: Somewhat important P3: Somewhat important
    • 4.6.0
    • 4.5.2
    • None

      When using the code below then with Qt 4.4.2 the files are listed, but with 4.5.2 they are not. It seems as if the part (details) confuses the search algorithm.

      QString file = QFileDialog::getOpenFileName(this, "Datei öffnen", "", "My
      file type (details) (*.Z9A)");

      If it is not supported to have the (details) part in the example above, then this should be clarified in the documentation for setNameFilter()

      http://doc.trolltech.com/4.5/qfiledialog.html#setNameFilter

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

            menard Alexis Menard (closed Nokia identity) (Inactive)
            sanonymous Nokia Qt Support (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes