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

Combo boxes have more space above/below in 5.12.2 than 5.9.7 on the Mac.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.12.2
    • Widgets: Layout
    • None
    • Mac OS X 10.15.2 (Catalina)
    • macOS

    Description

      In Qt 5.12.2, combo boxes on the Mac seem to have a few extra pixels of spacing above and below them, which means that layouts with a mixture of buttons and combo boxes don't always have consistent spacing.

      See the attached UI file and screenshots from Qt Designer. In 5.9.7, there is a consistent 13-pixel spacing between all of the buttons and combo boxes. In 5.12.2, the buttons are still spaced 13 pixels apart, but there's a 16-pixel space between the combo box and the buttons.

      Similarly, if you delete the combo box from the horizontal layout at the bottom of this UI file, the layout's height decreases by a few pixels in 5.12.2. This didn't happen in 5.9.7.

      It's not a major functional issue, and I'm not sure whether the change is intended behavior or not, but most of the layouts I've been working with seem to look better using the more consistent spacing of 5.9.7.

      Attachments

        1. 5.2.12.png
          5.2.12.png
          37 kB
        2. 5.9.7.png
          5.9.7.png
          42 kB
        3. ComboSpacing.ui
          3 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            benm_ca Ben Merritt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes