MouseEvent.y

the widget-relative, y coordinate of the pointer at the time the mouse button was pressed or released

class MouseEvent
int y;

Meta