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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 5.13.0
    • Fix Version/s: None
    • Component/s: Widgets: Layout
    • Labels:
      None
    • Platform/s:
      All
    • Commits:
      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
        For Gerrit Dashboard: QTBUG-76585
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            sgaist Samuel Gaist
            Reporter:
            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