Getting the LOCAL MOUSE POSITION in a custom widget V2

Your (a-d) sequence seems very complicated and britle. Just override Widget::onDragHover(const DragHoverEvent& e). The vector e.pos contains the pixel coordinate of the mouse cursor, relative to the widget.

2 Likes