Hi, this is my first post here. I'm new to QT and I have to do special things with my QTreeWidget reguarding Drag and drop.

When I drop an item, I need to make a verification before it is "finalized". I need to know exactly which functions need to be reimplemented? I couldn't find good examples for this.

Do I need to play with Events? (mouseMoveEvent, mousePressEvent, dragMoveEvent?)
QDrag and QMimeData? (dropMimeData() ?)

I made a new class MyTreeWidget() : public QTreeWidget() so I can reimplement some of these functions, but I'm not sure which ones I should use. I need to have access to the QTreeWidgetItem that is being dragged and the one on which it is dropped (so the validation will be done when it's dropped).

Any help would be greatly appreciated. Thank you!