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

Crash in QAbstractItemView::setModel()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.3.1
    • Widgets: Itemviews
    • None

      QAbstractItemView::setModel() has 2 asserts in lines 699 and 703, which do sanity checks on given model. Unfortunately, these asserts do not take dynamic models into account, which require a call to canFetchMore()/fetchMore() to populate their data and assume such call will be made before a call to index(). This situation leads perfectly fine models to crash, when Q_ASSERT_X is enabled and work as intended when disabled.

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

            Unassigned Unassigned
            krojew Kamil Rojewski
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes