[Interest] Getting QTreeView item click offset for DnD
Jason H
scorp1us at yahoo.com
Fri Apr 13 18:04:19 CEST 2012
I need to drag model items from a QTreeView to a widget and make the item appear in the widget at the right spot.
I have it working except that the drop is not exact. It is off by where the user clicked in the QStandardItem.
I need to figure out how to get that click offset (i.e. QPoint(50,10)) and factor that into the drop location (i.e move(event->pos()-clickOffset);)
What do I need to do to get that click offset inside the QTrreeView?
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120413/fa9de354/attachment.html>
More information about the Interest
mailing list