Should be CustomContextMenu! Use the emited customContextMenuRequested signal and connect it to your own slot. There you fetch the widgets actions via QWidget:actions() create a menu out of them, add your own actions and and execute it.actionsContextMenu
OR
set to actionsContextMenu, use the way you mentioned by adding the custom functions to the widget and it should work
EDIT: If you want the same look and feel use createStandardContextMenu() and alter the retrieved QMenu with your own actions.
Sorry for the confusing answers, but you will find all necessary informations...
Bookmarks