"the parent" is probably the QScrollArea widget (the widget which handles the event), and you want its viewport, thus you have to map from the scroll area widget to its "canvas" coordinates. That's exactly the same what my solution does (seems that Trolls use the scrollbar version in their examples, at least the one I've seen -- namely the pie view example).Originally Posted by barnabyr
Just remember that context menus can be handled in three different ways in Qt4. Choose the one which suits you best.And Wysota thanks for the reminder about contextMenuEvent . I guess I assumed it wouldn't be available ...
Bookmarks