Qt Drag and drop between QTreeWidget
问题 In my QT application I have two QTreeWidget A and B. I want rewrite drag and drop function for this two behavior: From A to A move items with all childrens. From B to A copy items with all childrens. I have view that in dropEvent function I have event.source() for take source. But how change function with flag for movement or copy dinamically? There is an example? Thanks 回答1: In order to perform this task we must distinguish if the action comes from himself or another widget for it is