so: iam trying to make context menu but only in treeview and columnview, was sitting, reading and trying for 3hours now and i still can't manage to do it, any help?
Then you might use the contextMenuEvent method of your views and not of your mainwindow! Or check via the global position of the cursor, if you are over the views. But using the event handler of the classes is better. Or you could install an event filter...
Bookmarks