[Interest] QAbstractItemModel Drag&Drop

Chris Meyer cmeyer1969+qt at gmail.com
Tue Sep 17 01:19:33 CEST 2013


You might want to take a look at a bug I filed about this:

https://bugreports.qt-project.org/browse/QTBUG-32362



On Sun, Sep 15, 2013 at 5:15 AM, Alexander Syvak <alexander.svk at gmail.com>wrote:

> 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).
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130916/49f32b9b/attachment.html>


More information about the Interest mailing list