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