I want to stack some QPushButton
objects on the other side of my QMenuBar
.
This is how my window looks now:
And this is how I want it to look like (I've photoshopped the image):
I know that in the motif
widget style, the help menu is aligned to the right, but I'm sticking with plastique
, so it's not a problem for me.
I'm using Qt4.8. Any ideas?
QMainWindow::setMenuWidget()
can be used to set any widget as the main window's menu bar widget. Using an appropriate layout, you can use something like the following to customize the menu bar (MainWindowImpl
is a sub class ofQMainWindow
):theMenubar
points to theQMenuBar
which contains your application's main menu bar.QMenuBar has a
setCornerWidget
function, that sets a widget (that may include a whole layout) as the cornet widget.