Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Drag ListWidget item outside my main app.
ealione last edited by
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?
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