Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.8.5, 5.2.0
-
None
-
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
For Gerrit Dashboard: QTBUG-36010 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
74913,3 | remove space from QMenuBar | stable | qt/qtbase | Status: ABANDONED | -1 | 0 |
100280,4 | QMenuBar: fix extra indent on the right with a TopLeftCorner widget. | 5.4 | qt/qtbase | Status: MERGED | +2 | 0 |
112339,3 | QMenuBar: honor the left widget size hint | 5.5 | qt/qtbase | Status: MERGED | +2 | 0 |