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

Broken Layout on Mac

XMLWordPrintable

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

      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)

        1. LayoutCreator1.png
          9 kB
          Jarek Kobus
        2. LayoutCreator2.png
          34 kB
          Jarek Kobus
        3. LayoutLinux.png
          20 kB
          Jarek Kobus
        4. LayoutMac.png
          15 kB
          Jarek Kobus
        5. widget.ui
          2 kB
          Jarek Kobus
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes