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:

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

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

Code:
Cannot assign object type ContextMenu_QMLTYPE_57 with no default method
advTHANKSance