hi guys, 

I'm working on a new tool, in which I would like to implement a ctl+c/ctl+v 
to duplicate some (non-serialized) data, e.g. QWidget, QGraphicsItem, etc...
So I'm getting the clipboard from the maya instance using 
QApplication.instance().clipboard(), works fine.

However, when I connect my clipboard.dataChanged signal and try to ctrl+c 
in my widget, it doesn't trigger the method I provided; instead, it just 
behaves like the regular maya clipboard, returning me an error because 
nothing is selected in my 3d viewport. Seems that ass soon as the focus in 
on my widget, maya understands it as if the focus was on the viewport 
instead. If I copy anything in maya, or even outside of maya, however, 
that'll trigger my slot... Looks like I'm missing some sort of 
"acceptClipboardEvent" in my widget...

Any idea what I'm missing here? 

Thank you

-- 
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/d3fdc10c-9f54-4b76-aea0-9365b27f4c16n%40googlegroups.com.

Reply via email to