My menu items were added through the UI designer. I can't seem to find a proper solution. I've asked on IRC and this solution How do I set QMenu to align to the right of a toolbar? was not clear to me.
Is there a simple way to do this by accessing the UI code in the MainWindow constructor? Or any other pointers?