Hello,

I have 2 tree widgets. I drag items from the tree on the right side. I want 
that the item named "container", once dropped in the left side tree, will 
become the only item that can 
receive drops. This is my first attempt. It is all setup to execute:

https://pastebin.com/3QTU9rBX

I guess that the problem is item dropped is taking the properties of the 
treewidget, so all the items can recieve drops.

The only way that I can think of is creating my own QTreeWidget class and 
override methods such as dropEvent(), but isn“t that to complicated? 
Because I will also have to do mouse events,
then get the QPoint on the widget, check which row it is, take out item, 
insert item etc...
I just wonder if there is a simpler way before going crazy writing my own 
class. All I want is that the item "container" could receive drops in the 
left tree widget.

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/a31036f7-55ad-4b5c-9431-6d692dc8719e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to