PDA

View Full Version : Drag n Drop with multiple TreeView



laugusti
6th October 2009, 17:14
Hi all,

I have 4 tree views sharing the same selection and I would like to be able to drag n drop this "common" selection from any tree view.
Unfortunately the indexes I got from QAbstractItemModel::mimeData do not contain all selected indexes if I switch between tree views while making the selection.

Here is the current behaviour:
1/ In TreeView1, I select the 1rst row
2/ Then I go to TreeView2 and select the 2nd row
3/ I start dragging but only the 2nd row is moving around

Anybody has a clue?

Thanks,
Lionel