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

QComboBox does not centre selected item on Mac

    XMLWordPrintable

Details

    • macOS

    Description

      QComboBox does not centre the selected item when the menu is opened, unlike the native NSPopUpButton.

      When a menu is quite tall, NSPopUpButton will adjust the menu to fit on the screen and will scroll the contents to ensure the selected item is always under the mouse.

      QComboBox centres the menu on the mouse, rather than the centring the selecting item under the mouse - this leaves the user with a selection that's some distance removed from the mouse, which then jumps under the mouse if they move by 1 pixel. This feels very unnatural compared to the standard NSPopUpButton behaviour.

      In the screenshots, the red arrow indicates the mouse position. The NSPopUpButton is from the International Preferences prefs pane.

      Attachments

        1. NSPopUpButton.jpg
          NSPopUpButton.jpg
          43 kB
        2. QComboBox.jpg
          QComboBox.jpg
          41 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            refnum Dair Grant
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes