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

Widgets: items inside nested sub layouts are misaligned

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.15.16, 6.7.3, 6.8
    • Widgets: Layout
    • None
    • Linux/X11, macOS

    Description

      There is an issue on Mac OS with layouts where QWidgets are not "aligned" in a nested sub layout with the widgets of the parent layout.

      See attached screenshots.

      It might be related to :

      https://bugreports.qt.io/browse/QTBUG-2699

      https://bugreports.qt.io/browse/QTBUG-14591

      Which date from more than 15 years ago.

      Using 

      setAttribute(Qt::WA_LayoutUsesWidgetRect);

       is not a fix and his not working properly in a customer case I am working on.

      Attached is a sample program.

      Attachments

        Issue Links

          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
              xavierbesson Xavier Besson
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes