I'am trying to have a a QMenu to popup after a user clicks on a QPushButton (on Symbian). Right now it's being called like this:
At first that works fine. But when the phone switches to Landscape mode, the left side of the menu would not line up with the left side of the button. If you switch it back to Portrait mode again, the menu cannot even be seen anymore. How could I execute the QMenu at the 'correct' position?Qt Code:
To copy to clipboard, switch view to plain text mode
Added after 32 minutes:
Well, never mind. moving and then showing the QMenu works. In certain cases it needs to mapToGlobal() though. yay
Bookmarks