So i have a custom QTreeView and a custom QStandardItemModel and they are functioning well. I wanted to add in drag and drop to this, however, i have now encountered some frustration.
I have re-implemented dragEnterEvent(), dragMoveEvent(), and dropEvent(). I can trace when an item starts dragging, and when i am ready to drop it. Now is where the problem occurs, dropMimeData() is never called within the custom QStandardItemModel.
Within the dropEvent, i have verified that the item is being dragged properly. I wanted to implement dropMimeData() so that i could encode the QModelIndexList of selected indexes.
Is there anything in particular i should be checking for ?
I am using this as a tree for a scene hierarchy.
A
|_B
|_C
|_D
where i want to drag C to A.
thanks for any help or suggestions.
Bookmarks