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

Layouts cannot have zero margins in macOS

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.8.2
    • Widgets: Layout
    • None
    • macOS

      Even with 

      layout->setContentsMargins(0, 0, 0, 0);
      layout->setSpacing(0);
      

      I still cannot eliminate the margins of layout on macOS. If the layout contains only one widget, the rendering is totally fine. This problem becomes serious when I try to use complex editor for item delegate (as in fig. 2).

        1. Screenshot 2025-03-08 at 10.00.13 PM.png
          46 kB
          Xun Yuan
        2. Screenshot 2025-03-08 at 10.05.33 PM.png
          21 kB
          Xun Yuan
        3. test.cpp
          0.4 kB
          Xun Yuan
        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
            yuanxun Xun Yuan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes