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

Broken Layout on Mac

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • P2: Important
    • None
    • 4.7.4, 5.3.1
    • Widgets: Layout
    • None
    • macOS

    Description

      Open the attached form either inside QtDesigner or compile it in example application. The layout on mac is broken (LayoutMac.png):
      1) Look at checkboxes - their x position is not aligned correctly
      2) Look at groupboxes - their y position is not aligned correctly (regression from qt 4.2)
      If you preview it on mac in different style or on linux it looks correctly (LayoutLinux.png).

      This has to be fixed - we can't rely on people not to nest layouts/widgets. This is common pattern to use a placeholder in ui file for something which will be added later (e.g. from plugin).

      It looks really ugly on mac - take a look at some examples from qtcreator (LayoutCreator1.png - nested checkboxes, LayoutCreator2.png - "Tabs And Indentation" groupbox is nested while "Indent" is not)

      Attachments

        1. LayoutCreator1.png
          LayoutCreator1.png
          9 kB
        2. LayoutCreator2.png
          LayoutCreator2.png
          34 kB
        3. LayoutLinux.png
          LayoutLinux.png
          20 kB
        4. LayoutMac.png
          LayoutMac.png
          15 kB
        5. widget.ui
          2 kB

        Issue Links

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

          Activity

            People

              smd Jan Arve
              jkobus Jarek Kobus
              Votes:
              4 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes