I've created a custom component by extending a QQuickPainedItem. I would like to open a popup menu when the user right clicks in my component. How do I do this? The example in the Menu QML documentation throws exceptions when I try to use it with a QQuickPainedItem.