Building up context menus
General and Desktop
1
Posts
1
Posters
493
Views
1
Watching
-
Hello,
As I was working on my web browser, I started realizing that it would be much more complete if I had better right-click context menus. on right-click, I would like a menu to appear with a bunch of QActions. Qt already seems to have built a context menu into my app for me, but I would like to add more actions to it. I also need it to only display valid actions (i.e. if I right-clicked the QWebView I would get back, forward, reload, etc. but if I click on the tab of a QTabWidget I would get close, new tab, pin tab, etc.)
How can I add actions to the context menu?