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

Cannot set QHBoxLayout margin to 0 on macOS

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.12, 5.15.1
    • Widgets: Layout
    • None
    • 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

        1. 87738.tgz
          1 kB
          Michael Bruning
        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
            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