Setting the MouseCursor on a DragAndDropTarget/FileDragAndDropTarget while items are being dragged does not work.
I could narrow it down to the part where the MouseInputSourceInternal::componentUnderMouse doesn’t gets updated while dragging.
Is this intended? When so, how can i archieve setting the mouse cursor in this scenario?
Yes, when you’re dragging, the mouse is captured by the component you clicked on, so it won’t attempt to look at any components that are being mouse-overed. But if you change the cursor of the original component, that should make it update.
Apparently, there is still an issue setting the mouse cursor while dragging. This caused by new behavior in MouseInputSourceInternal::setPointerState, which prevents setting the component under the mouse while dragging is underway. So, it is not possible to change the mouse cursor for a component that wants to accept a drag.