Hi,
I am writing application for drag and drop on QTreeWidget which has to perform following action.

1.Drag and Drop File/Folder within the QTreewidget.

2.Drag File/Folder from outside application and Drop it into my Application's QTreewidget.

I have successfully implemented ( 1. ) scenario by reimplementing the dropMimeData(QTreeWidgetItem * pDestItem, int nIndex, const QMimeData * pMimeData, Qt:ropAction action ) function of QTreewidget .


Here pDestItem is the dropped location (Destination location of Treewidget.)

For the ( 2. ) scenario i didnt Recieve any dropMimeData() event (As information is dragged from outside application).
So i reimplemented the drag Enter Event and Drag Leave and Drop Event for TreeWidget.With this i got the information of Dragged Item Successfully.


THE PROBLEM I AM FACING.

==> Now i didnt Receive dropMimeData() for 1st Senario as it is Over rided by Drag enter Event .

==> How to get the dropped location (Destination location of Treewidget.) in Drop Event() Function .?

Any Help Would be Appreciated...