Drag ListWidget item outside my main app.
-
I have a simple app that consist of two ListWidgets, between which I can drag items in order to interactively add them from one list to the other.
What I need to do now though is by dragging and dropping an item anywhere outside my main app to be able to delete said item. I can't find a way to capture the drop event outside my app though.
Any ideas on how can a behaviour similar to what I described be achieved?
-
Hi,
Just a quick idea but what about checking the target of the QDrag after exec returned. If it doesn't return something belonging to your application you can then act accordingly
Hope it helps