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

QSortFilterProxyModel::rowCount

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4: Low
    • None
    • 5.11.3
    • None
    • Linux/X11

    Description

      When I tried to know the number of rows of proxy model in filterAcceptRows method, program crashed due to stack out of memory. A little digging in code of proxy model points me to undocumented behavior of rowCount. Signature of this method tells us that it should not modify its own data, however it does some remapping. For me, it looks like hack for always getting actual model state and I think it should be documented somehow.

      P.S.: I believe that making remapping in const method's is bad solution.

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            docteam Qt Documentation Team
            hellman Maxim Danilov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes