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

Crash in QAbstractItemView::setModel()

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes