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

Cursor key navigation in item view causes wrong selection

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:

                There are no open Gerrit changes