[Interest] QAbstractItemModel Drag&Drop
Alexander Syvak
alexander.svk at gmail.com
Sun Sep 15 14:15:12 CEST 2013
Hi,
what is the sequence of events when drag&drop is processed?
Namely, having QListView. The flags() method is called for each list item
to check whether drag or drop operation is allowed.
Then mimeData() is called to encode all the dragged list items. The
dropMimeData() is called to store the dragged encoded items' data.
I don't find a moment when the mimeTypes() method should be called.
Additionally, the QListView should accept the proposed actions like
dragStart, dragLeave, drop before the events proceed to the model methods
(e.g. flags).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130915/63550387/attachment.html>
More information about the Interest
mailing list