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

ListView crash when scrolled and sorted.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • 5.7.0
    • 5.4.0, 5.4.1, 5.6.0 RC
    • None
    • Windows, both MS and MinGW.
    • 84f61dd2d2b0140814b39a2c5238a6e31c49abd7 (5.7.0), e38a98ad4453974b2848eeed02d81e0c408ce0c6 (5.6.4)

      When using QSortFilterProxyModel on QML ListView it works fine and is sorting correctly until the ListView is not scrolled down. But crashes when trying to sort already scrolled down ListView with a message:

      ASSERT failure in QList<T>::at: "index out of range", file c:\work\build\qt5_workdir\w\s\qtbase\include\qtcore\../../src/corelib/tools/qlist.h, line 478

      It is easy to reproduce it with the attached sample project.

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

            andysh Andy Shaw
            kiibimees Lauri Laanmets
            Votes:
            10 Vote for this issue
            Watchers:
            15 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes