I have two list widgets, list1 and list2. With the following codes, I am able to drag and drop between the two list widgets.
Qt Code:
__qlistwidgetitem->setIcon(icon); ... list1->setDragEnabled(true); list2->setDragDropOverwriteMode(true);To copy to clipboard, switch view to plain text mode
However, when I drag an item from list1 and drop into list2, the item stays in list1. I would want the item to be moved into list2. Another problem is that how can I, with a click of a tool button, clear the item from list2 back into list1?
Appreciate any help. Thanks!
Bookmarks