I'm looking for a way to control the direction that sub-menus are opened from in a QMenu. The default behavior is to open to the right, unless there isn't enough screen real estate, then open to the left.
If you have a menu that's on the far right of the screen, (example: chrome's settings wrench), if you have several nested menus, the default behavior causes them to ping back and forth between opening from the left and opening from the right, which is a maddening user experience .
What I'd like is a way to tell QMenu to always open submenus to the LEFT; there is definitely not a direct control for this in QMenu, but Qt often has a lot of magical 'application' or 'global' settings for platform-specific behavior. I was wondering if anyone knew!
I have done this before in C# using ToolStripMenu, so I know that some toolkits have this ability.