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

QFileSystemModel / QSFPM / QTreeView : infinite loop in latest 5.15 commits

    XMLWordPrintable

    Details

    • Platform/s:
      All
    • Commits:
      b84852670da604d32fe7cf222f0a82c28fd29c53 (qt/qtbase/dev) fcbeebc5828228078c38329940fabb80f22e3909 (qt/qtbase/5.15)

      Description

      Hello,

      the following code which works fine up to roughly 5.15.1, triggers an infinite loop somewhere in 5.15 HEAD

      #include <QtCore>
      #include <QtWidgets>
      
      int main(int argc, char *argv[])
      {
          QApplication a(argc, argv);
          QFileSystemModel model;
          model.setNameFilters(QStringList{"*.foo"});
          model.setNameFilterDisables(false);
          model.setFilter(QDir::AllDirs | QDir::Files | QDir::NoDotAndDotDot);
          
          QSortFilterProxyModel pm;
          pm.setRecursiveFilteringEnabled(true);
          pm.setSourceModel(&model);
          pm.setFilterKeyColumn(0);
      
          QTreeView w;
          w.setModel(&pm);
          w.show();
      
          return a.exec();
      }
      
      

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              dorisverria Doris Verria
              Reporter:
              jcelerier Jean-Michaƫl Celerier
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews