QDrag and drop beween widget.
-
I am building an app where I'm required to drag and drop QWidget between QWidget containers. How can the source container be notify that the Drop operation has been successfully completed so I can remove or disable the dragged element from the source container. From what I understand only the destination of the drop operation receive the QDropEvent.
-
Hi and welcome to devnet,
The return value of QDrag::exec() tells you what action happened. Once you drop or cancel the operation, exec will return.
Hope it helps
-
You're welcome !
Since you have the dragging working now, please update the thread title prepending [solved] so other forum users may know a solution has been found :)