PopupMenu on top of a window
I need to open a popup menu on a Window, like a context menu but with a left click, so I'm using the Menu directly. The problem is that when I show it using showAt(x,y) the menu is displayed below the window. Is there a way to always show it on top of everything?
I tryed window.toBack() but doesn't help.
I might have several small windows open all alike, when the user clicks inside a window the popup menu should be displayed on top of that window, so I need it to be on top of everything. How can I achieve that?
Does anyone know how to do it?