PDA

View Full Version : Problem with Drag & Drop between two TableViews with custom model



cevou
31st July 2010, 13:09
Hi,

i'm trying to move rows between two QTableViews. Both have the same custom model. I reimplemented insertRows, removeRow, removeRows, setItemData, setData and supportedDropActions.
In my views I selected dragEnabled=true, dragDropMode=DragDrop, defaultDropAction=MoveAction, selectionBehaviour=SelectRows.
Now when I try to drag and drop something no dropIndicator is shown and I see the small symbol which shows that drop isn't possible on my view.

And ideas?

Thanks,
Chris

cevou
2nd August 2010, 20:16
There must be some way to move around rows with QTableView/QAbstractTable model.
But how?