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

QMenuBar reserves space to right corner too when corner widget set to TopLeftCorner.

    XMLWordPrintable

Details

    • 8e9d78e43ef6dd7a6fc3be8874fc518db8537c91 (qtbase/5.4, 4.12.2014, 5.4.1)

    Description

      Set a corner wodget to QMenuBar with:
      setCornerWidget(new QLabel("This is a corner widget: "), Qt::TopLeftCorner);
      Then add several menus to QMenuBar.
      --> QMenuBar will preserve the same amount of space to the right corner what is reserved to left corner widget. If corner widget is set to qt::TopRightCorner, then spacing is correct.

      Attachments

        1. menubar.png
          menubar.png
          59 kB
        2. qmenubar_margins.zip
          2 kB
        3. qtbug36010_diag.diff
          3 kB
        4. qtbug36010_log.txt
          2 kB
        5. qtbug36010.zip
          1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qtcomsupport Qt Support
            qtcomsupport Qt Support
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes