More progress.  I now have the two MineData types working so that a node
dropped into the target tree is created with a different MIME_TYPE and in
the dopMimeData method of the target model I have at the bottom:

. . .
if (mimedata.hasFormat('target_type')):
   self.removeRow(row,parentIndex)

It does go through this removeRow for internal drags with no errors, but
removes the new item instead of the old one.
If I comment those two lines out it creates the new item and leaves the old
one there also.

More digging. Wish I had connectivity on that computer so I could send a
working example.

--
View this message in context: 
http://python.6.n6.nabble.com/QTreeView-DragDropMode-tp4680293p4899744.html
Sent from the PyQt mailing list archive at Nabble.com.
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to