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

QTableView hangs when number of rows large (>71582788)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: P2: Important P2: Important
    • None
    • 4.7.3, 4.8.1
    • Widgets: Itemviews
    • None
    • Mac OSX 10.7.5, Python 2.7

      When I subclass QAbstractTableModel and embed it within a QTableView, the application hangs when the model's rowCount() result exceeds 71582788. Inserting print statements within the code reveals that, above this limit, Qt starts calling headerData() on every row in the model (which takes forever). I have reproduced this with 2 versions of Qt4, using the PyQt4 and PySide bindings.

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

            stephen.kelly Stephen Kelly (Unused account) (Inactive)
            chrisbeaumont Chris Beaumont
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes