Moving menu to the right menubar corner
Hi guys,
I have some menus inserted in the menubar of my mainwindow. One menu contains totally different set of actions and I want that menu to be placed in the right corner of that menubar. How can I align a menu to be placed on the right handside of a menubar?
Beforehand thanks!
Kacper
Re: Moving menu to the right menubar corner
Have you tried adding a separator to QMenuBar instance?
Re: Moving menu to the right menubar corner
haven't tried it yet, as I wrongly assumed that separator is used between actions. If it can be used between menus I will try it.
Thanks.
Kacper
Re: Moving menu to the right menubar corner
QMenuBar has an insertSeparator() method so I assume it can.
Re: Moving menu to the right menubar corner
Hmmm.. insertSeparator() doesn't seem to do anything. No matter how many separators I insert before an action, my menu still looks the same. And QActions with icons won't render their icons when added to the menu bar.. Too bad, looks like I'll have to subclass.