for those interested, I achieved it by reimplementing the QTreeWidget.dropMimeData() method:
def dropMimeData(self, parent, index, data, action):
self.dropped = (parent,index)
if parent: idx = self.indexFromItem(parent)
def dropMimeData(self, parent, index, data, action):
self.dropped = (parent,index)
idx = QModelIndex()
if parent: idx = self.indexFromItem(parent)
return QAbstractItemModel.dropMimeData(self.model(), data, action , index, 0, idx)
To copy to clipboard, switch view to plain text mode
Bookmarks