Drag and drop focus

295191-capture.png

Red : slot dragged.
Yellow : slot i want to get data from.
how can i focus the yellow slot and get data from it when i drag the red slot ?
thanks.

You have to figure out how you are going to get a reference to that slot. Need a bit more details on what you are trying to do as far as the complete behavior. Are you dragging red onto yellow and THEN getting data from yellow? What is the exact behavior you are trying to accomplish? Will you get the Data from yellow as soon as red is dragged? Will these two boxes always reference each other?

You override onDragEnter for the slot widget, the Operation contains Payload - this can be a reference to the dragged widget. This grants the slot access to the dragged widget and vice versa:


Or do you need the data before the drag interaction takes place?