QAbstractItemModel and removeRows
General and Desktop
5
Posts
2
Posters
1.5k
Views
2
Watching
-
I have model inherited from QAbstractItemModel. Realized a Drag-and-drop.
When the DND is occur the function "removeRows" is called. When I delete the item from TreeView - the function "removeRows" is called also. How I can detect in the function "removeRows" the event: it is a deleting or DND (moving) ? -
Hi,
Out of curiosity, why do you need to make the difference ?
-
Why not send it from the place where you start the action ?