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

QSortFilterProxyModel should accept lambdas to do the sorting / filtering

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 6.8
    • Core: Item Models
    • None

      Instead of having to derive from QSortFilterProxyModel, it would be great if we could just set a function:

      QSortFilterProxyModel *model = new ...;
      model->setFilterFunction([](int sourceRow, const auto &index){ ... });

       

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

            dheerendra Dheerendra Purohit
            madwinter Marcus Tillmanns
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

                There is 1 open Gerrit change