PDA

View Full Version : Drag Drop in QT



vaibhav
2nd December 2010, 11:42
Hi,
I have implemented Drag drop into my application for QTreeWidget.
I have successfullly got the dragged object information but how to get the target location (QTreeWidgetItem of QTreeview) in dropEvent(QDropEvent *event) function...?

Any help would be appreciated.

high_flyer
2nd December 2010, 12:10
I am not sure I follow.
The target is the object that has the dropeEvent()...

vaibhav
2nd December 2010, 12:15
Hi,
I could solve the above problem.
I was looking for the QTreeWidgetItem reference (target location or dropped location on QTreeWidget )..
This could be achieved simple by itemAt(event->pos())..

Any ways thanx for the reply.