I've got a couple QTreeWidget's in a dialog. I want to be able to do
drag and drop operations between them, but to override the default drag
and drop. The parent program/dialog will determine what effect the drop
has.
<br>
<br>The easiest and simplest way of doing this would be if I were able to
intercept a drop operation and have the following information:
<br>
<br>1) Which QTreeWidget the drop happened on
<br>2) Which QTreeWidgetItem (or index) and column the drop happened on
<br>3) Which QTreeWidget the drag originated from
<br>4) Which QTreeWidgetItems (or indices) were dragged
<br>
<br>
<br>This seems like a really basic issue. Shouldn't the QTreeWidget's
dropEvent function, instead of being of the form:
<br>
<br> "dropEvent (self, QDropEvent event)"
<br>
<br>be of the form:
<br>
<br> dropEvent(self, QDropEvent event, QTreeWidgetItem *target, int
<br> targetColumn)
<br>
<br>??????
Is there an easy way to do this?<br>
<br>Anyone know how to solve this issue?
<br>
<br>Thanks,
<br>Robert