Here's the context: I am working on the Maya plugin. One of the functions requires me to drag an element from the Outliner window into the user interface element of my plugin user interface. (Everything in Maya is in Qt) From the outliner I can drag and drop an item and drop it. For anyone familiar with Qt, you'll learn that DropEvent comes with a QMimeData object. This object contains data from a drag & drop source (Outliner window). In my case, the QMimeData format is "application / x-maya-data". The QByteArray returned by QMimeData.data () is 8 bytes long and the first 4 are NULL. So, I suspect this is a pointer to some data type.
So here's the question: Is there a way to determine which data type the pointer points to? I tried to include it in several Maya data structures (MPxData, MObjectHandle, etc.), but to no avail.
source share