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

Proxy Source Mapping Issue

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.3.0
    • Core: Item Models
    • None
    • Windows x64, Visual Studio 2022
    • Windows
    • f48b8b7bc (10.0)

    Description

      Attached is a repro case that generates the assert 

       

       The example is a modified version of this:

      https://github.com/scopchanov/SO-CustomList

      The modified version consists these class

         QSortFilterProxyModel 

         QListView to display the proxy

        QStyledItemDelegate for painting

        QStandardItemModel for the items

        QStandardItem items

      When you hit the space key, an item is inserted into a random row.

      To reproduce the issue, scroll to the bottom and hit the space key. This should generate the assert.

      There is no assert if the space key is hit when displaying the top of the item list.

       The insert code is in the keyPressEvent function in ListView.cpp

       

      Attachments

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

        Activity

          People

            dfaure_kdab David Faure
            doug_rogers Doug Rogers
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes