Popup and Menu seem to be implemented as adding a QtQuick item to the parent window instead of opening a new window.
This has some drawbacks that make it very hard to properly implement context menus:
- The context menu is clipped to the parent window. That means the context menu is cut off if the parent window is small (like a small notification window / message box)
- The context menu gains focus when opened, which means the control that previously had focus looses it. This makes it impossible to implement a "Copy" action in a context menu, as the textedit that had focus previously looses it, which clears the selection (and therefore the copy action has nothing to copy anymore)
Menu and Popup should be normal windows, at least on the desktop, to be able to implement context menus that behave properly.