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. qtbug36010.zip
          1 kB
          Friedemann Kleint
        2. qtbug36010_diag.diff
          3 kB
          Friedemann Kleint
        3. qtbug36010_log.txt
          2 kB
          Friedemann Kleint
        4. menubar.png
          59 kB
          Qt Support
        5. qmenubar_margins.zip
          2 kB
          Qt Support
        For Gerrit Dashboard: QTBUG-36010
        # Subject Branch Project Status CR V

        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