Jameson Rollins
unread,Jan 23, 2024, 3:18:00 PMJan 23Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pyqt...@googlegroups.com
Hello. I would like to add a plot/viewbox context menu action that uses
the current position in the plot where the right click occurred. The
popup gets what appears to be the point in the global coordinate system,
but I'm at a loss on how to map it to the viewBox position. Everything
I've tried (e.g. vb.mapSceneToView, mapFromGlobal, etc) doesn't work
(i.e. either fails or doesn't produce the correct point). Does anyone
have any suggestions on how to achieve this? Thanks in advance.
jamie.