<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Just trying to do some simple drag drop calls with a QTreeWidget and getting nowheres....<br>
<br>
What am I missing in dropEvent to get it to actually copy the tree data into the new object?<br>
Currently the dragged object disappears after being dragged onto a new top level item, but doesn't show up in the tree.<br>
<br>
<br>
<br>
class DragDropListWidget(QTreeWidget):<br>
def __init__(self, type, parent=None):<br>
super(DragDropListWidget, self).__init__(parent)<br>
<br>
#self.dropModes = self.supportedDropActions()<br>
self.setAcceptDrops(True)<br>
self.setDragDropMode(QAbstractItemView.InternalMove)<br>
self.showDropIndicator()<br>
<br>
def dragEnterEvent(self, event):<br>
event.accept()<br>
<br>
def dropEvent(self, event):<br>
event.accept()
</blockquote></div><br>