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

Cannot set QHBoxLayout margin to 0 on macOS

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.12, 5.15.1
    • Fix Version/s: None
    • Component/s: Widgets: Layout
    • Labels:
      None
    • Platform/s:
      macOS

      Description

      On macOS, 2 QComboBoxes inside a QHBoxLayout inside a QWidget do not horizontally align with a QComboBox, even when margins are set to 0 for the layput and the widget and one of the QComboBoxes is hidden. Works fine one Windows (and apparently Linux).

      Jira won't let me attach any files, but all the details (including code and screenshot are) are here:
      https://forum.qt.io/topic/119936/qcombobox-aligment-issue/

      While a few pixels out of alignment might not be considered important, it makes a big difference to how native things look on Mac.

        Attachments

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

          Activity

            People

            Assignee:
            qt.team.quick.subscriptions Qt Quick and Widgets Team
            Reporter:
            oryxdigital Andy Brice
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes