I am trying to isolate ContextMenus, which are somewhat generic, i.e., have Edit+Delete options into a standalone QML file.

Simple question: how does one invoke the open() method from the Qt Component reference. The following code is wrong, but you can get a sense of what I am trying to do:

        onPressAndHold: ProjectContextMenu {}.open()
I had also tried the basic:

        onPressAndHold: ProjectContextMenu {}
but this results in the error:

Cannot assign object type ContextMenu_QMLTYPE_57 with no default method