Reputation: 128
I have a QMenubar
inside QMainWindow
. I have set it to be displayed on the right corner using setCornerWidget
. But the menu items are going out of the main window. How can I prevent the menu to be displayed within the window?
I have already tried menu->setLayoutDirection(Qt::RightToLeft)
which is giving me a mirror image of the current menu display as seen below, but that does not look good to me. Is there a way to keep the direction from Qt::LeftToRight
and still be able to contain the menu inside the window?
Upvotes: 0
Views: 341