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

Layouts don't respect widget's content margins on menu bar.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • None
    • 5.13.0
    • Widgets: Layout
    • None
    • All
    • 76a0f94a6d7d85f352e3d4a00c192bfc377cc776 (qt/qtbase/5.15)

    Description

      When using content margin on widget its layout calculates width of a menu bar based on entire widget's width and doesn't take margins into consideration. This results in menu bar sticking out of the widget on the right side.

       

      Attached are example demonstrating the problem and a patch that fixes it.

      Attachments

        1. QTBUG76585.patch
          0.9 kB
        2. QTBUG76585.zip
          0.7 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            sgaist Samuel Gaist
            chrisaverage Krzysztof Kawa
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes