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

QTableView can't handle models with high row counts

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 5.12.4
    • Widgets: Itemviews
    • None
    • Linux/X11

    Description

      I've noticed that if I have a QAbstractItemModel whose rowCount returns a value greater than 0x4444444 the QTableView will query rowCount, columnCount, index, and flags for the root item but nothing else.

      Without changing anything else in the model but limiting rowCount to the above value works as expected: the view queries index/flags/data and displays everything correctly.

      Since rowCount is an int, on a 64bit system I'd expect the view to support up to 0x7fffffff rows; 0x4444444 is a curious number to have as limit.

      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
            glax Mattia Basaglia
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes