[PyQt] QTreeView DragDropMode (Copy vs. Move)

hosscomp ronnie.a.shoemaker at lmco.com
Tue Apr 10 19:50:12 BST 2012

hosscomp wrote
> hosscomp wrote
>> I am looking at the documentation for QAbstractItemView Class.  I have
>> created a tree view and I would like it to accept drops from a different
>> view, but also be able to move items within itself.  None of the
>> DragDropMode settings seem to allow that. If I set it to InternalMove it
>> acts the way I want it to internally but doesn't accept drops from the
>> other view. If I set it to DragDrop it only copies the items.  Do I need
>> to override some method (like dropMimeData) to have it remove the the
>> source item after copying it?  Or what documentation do I need to look at
>> to figure this out?
>> ----------------------------------------------------------------------
> I am still trying to figure this one out. How can I tell if an item being
> dropped is from this model instance's tree or from another one?  That is,
> an internal drag or an external one.
Is PYQT the correct place to post this question?

View this message in context: http://python.6.n6.nabble.com/QTreeView-DragDropMode-tp4680293p4771399.html
Sent from the PyQt mailing list archive at Nabble.com.

More information about the PyQt mailing list