prevent drop in QTreeWidget
Hi
Can someone advise me how to prevent a drop being accepted in certain circumstances in a QTreeWidget?
I have derived a class from QTreeWidget and have reimplemented the DropEvent method.
How do I get the information that tells me where the item is being dropped so I can tell whether or not the drop should be allowed?
Thanks
Graham
Re: prevent drop in QTreeWidget
The tree gets a dragEnter and then (if accepted) a dragMove event. This is where you can decide if a drop would be accepted or not.