[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyQt] QTreeView DragDropMode (Copy vs. Move)
From: Bart Kroon <pyqt () tarmack ! eu>
Date: 2012-04-24 22:36:48
Message-ID: 1671679.SY35ZzkxTi () dragonfly
[Download RAW message or body]
When time is short I would say, add a method to the source model that you can
call from the target model that removes the received items. That would make it
work at least. It might even be the best way to do such a thing, but I'm not
sure.
It seems you handle the dragged in mimedata as the object coming from the
source model. That doesn't seem right to me, you should serialise the
information in the source models mimeData() method. This can be done in any
way you like, so you could include sufficient information to describe the
original node and remove it from the source model.
-- Bart
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic