How to get the coordinates of mouse, when i push out a key at mouse
-
Depending on where you capture that event there are couple of ways. If, for example, you're overriding mousePressEvent its
event
parameter has many methods like pos(), localPos(), screenPos() and others. See QMouseEvent for complete list.Outside of mouse events you can always get current cursor position with QCursor::pos().