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

Windows native QFileDialog: extra space in filter when not filtering by suffix

    XMLWordPrintable

Details

    • Windows
    • ffb8464cefd661cfa3428931bd80ee262cacbe13 (qt/qtbase/dev) bcd544bd7cbf15a7e852852ec83eb9fdd242a0d3 (qt/qtbase/5.15)

    Description

      #include <QApplication>
      #include <QFileDialog>
      
      int main(int argc, char **argv)
      {
        QApplication app(argc, argv);
      
        QFileDialog().exec();
      }

      Note that the filters combo box has "All Files  (​*​)" in it.

      This block (a fix for QTBUG-42405) truncates "All Files (​*​)" to "All Files " (with a space), then native dialog apparently adds " (​*​)" (with another space).

      Attachments

        1. qtbug85423.zip
          1 kB
          Friedemann Kleint

        Issue Links

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

          Activity

            People

              kleint Friedemann Kleint
              a.khlyustov a.khlyustov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes