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

QFileDialog::selectNameFilter() does not work without filter details

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.8.0
    • None

    Description

      QFileDialog::selectNameFilter() does not work without filter details, at least an empty pair of parentheses is required. This bug is related to QTBUG-127924. Attachments:

      • app.zip: Application to reproduce the bug
      • app.log: Log file of that application
      • qt_strip_filters.cpp: Possible fix for function qt_strip_filters (part of qfiledialog.cpp)

      Function qt_strip_filters is commented with 'Strip the filters by removing the details, e.g. (.)', but if it's called with no details at all, it returns an empty string. Reason: The used regular expresssion does not match, if a filter does not contain at least '()'.

      Attachments

        1. app.log
          0.6 kB
        2. app.zip
          0.6 kB
        3. qt_strip_filters.cpp
          0.8 kB
        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
            wschenke Winfried Schenke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes