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

Cursor key navigation in item view causes wrong selection

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.2.1
    • Widgets: Itemviews
    • None
    • Linux/X11
    • 61c09bcef (master)

    Description

      If a view has a delegate that sets a different height for the current item, then QAbstractItemView::keyPressEvent() causes selection to change twice: First to the correct item and to some random one. It seems that the code that calculates the new selected rectangle mixes the old and the new height somehow.
      The attached project demonstrates the issue both visually and with debug output: Just use the arrow-down key to go through the list items.

      Attachments

        Issue Links

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              kandeler Christian Kandeler
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: