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

ComboBox highlight jumps around when using arrow key navigation

    XMLWordPrintable

Details

    Description

      Current behavior

      When using the arrow keys to select an element in a ComboBox popup, the highlight often jumps back to the mouse position when the arrow key is released.

      import QtQuick
      import QtQuick.Controls.Basic
      
      Window {
          width: 640
          height: 480
          visible: true
          title: qsTr("ComboBox arrow keys bug")
      
          ComboBox {
              anchors.centerIn: parent
              model: Array.from(Array(100).keys())
          }
      }
      

      Screen recording attached.

      Expected behavior

      The highlight should be determined solely by the arrow keys (until the user moves the mouse, of course).

      Reproduction

      Example code attached. I tested this on Windows + Mac and was able to reproduce it on both platforms.

      Attachments

        1. qtbug-101990.qml
          0.2 kB
        2. Screen Recording.mp4
          4.02 MB

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            nikwen Niklas Wenzel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: