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

ComboBox popup cannot have focus

    XMLWordPrintable

Details

    • bd126fdea95ed994fdd35d50e445b45af75657ab (qt/qtquickcontrols2/5.12)

    Description

      QQuickComboBox assumes that its popup window will never get the keyboard focus: all keys are handled by the QQuickComboBox itself, and if the QQuickComboBox item loses focus (for instance, because it's moved to the popup), then it hides the popup.

      This makes it impossible to properly style the popup window in some styles (where the focus is visually indicated) and makes it harder for clients to use custom popups with different key handling.

      I plan to submit a patch where the popup window is not closed, if the focus is being moved to it or one of its children. Feel free to assign this bug to myself.

      Attachments

        1. qmlWindow.bmp
          qmlWindow.bmp
          145 kB
        2. qmlWindow-nofocus.bmp
          qmlWindow-nofocus.bmp
          145 kB
        3. widgetWindow.bmp
          widgetWindow.bmp
          145 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            mardy Alberto Mardegan
            mardy Alberto Mardegan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes