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

Cannot set QHBoxLayout margin to 0 on macOS

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 5.12, 5.15.1
    • Widgets: Layout
    • None
    • macOS

      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.

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

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

              Created:
              Updated:

                There are no open Gerrit changes