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

QSortFilterProxyModel: Add support for Qt::MatchFlag(s)

    XMLWordPrintable

Details

    • User Story
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 6.3.0
    • None

    Description

      It would be helpful to add support for this enumeration in the QSortFilterProxyModel API:

       

      https://doc.qt.io/qt-5/qt.html#MatchFlag-enum

       

      Similarly to this matching API: https://doc.qt.io/qt-5/qabstractitemmodel.html#match

       

      Currently, QSortFilterProxyModel has these methods:

       

      https://doc.qt.io/qt-5/qsortfilterproxymodel.html#setFilterFixedString

      https://doc.qt.io/qt-5/qsortfilterproxymodel.html#setFilterRegularExpression

      https://doc.qt.io/qt-5/qsortfilterproxymodel.html#setFilterWildcard

       

      But it would be good to have the convenience of exact match, starts with, ends with, etc, even though it is possible to achieve this with regular expressions, I think. Would be helpful not to have to think of regular expression syntax for these common ones.

      Attachments

        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
            lpapp Laszlo Papp
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes