QAbstractItemModel and removeRows
-
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 ?
-
I need to send some signals depends of action.
-
Why not send it from the place where you start the action ?
-
of course it is possible, but I'd like to place all in model