Please nominate your Qt Champions for 2021! https://forum.qt.io/topic/132134/looking-for-the-2021-qt-champions
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) ?
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