Hello. If there are multiple docks and their corresponding widgets inside
one DockArea, how can I get the mouse pointer coordinates?
def mouseMoved(pos):
qwidget.pwidget .getViewBox().mapSceneToView(pos)
xCor = mousePoint.x()
yCor = mousePoint.y()
print( xCor, yCor)
qwidget.pwidget.scene().sigMouseMoved.connect(mouseMoved)
If I use the fuction above, I need to specify which widget the mouse is on
in advance.
Are there any convenient ways to determine the mouse position in a
situation where there are multiple widgets, or is there a method that tells
you which widget the mouse is on?
--
You received this message because you are subscribed to the Google Groups
"pyqtgraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/pyqtgraph/3db8570b-5731-406f-a443-6a1da274962dn%40googlegroups.com.