Drag and drop in a floating QWidget/QDialog/QMainWindow

   1468   0   1
User Avatar
Member
7 posts
Joined: Dec. 2013
Offline
Hello everyone!

Lately I've having some trouble implementing a floating QWidget/QDialog/QMainWindow (all yield the same result) with Drag&Drop capabilities in Houdini. I've been searching the web for some answer but I mainly find people asking (and answering) about Python Panels. I saw that there is a specific documentation page about drag and drop in Qt for Houdini [www.sidefx.com], but again, it's only for Python Panels.

I had some code that spawned a QDialog with a working drag and drop in Maya and standalone python, so in case I was missing something, I decided to take SideFX's drag and drop Python Panel example and just spawn it as a floating panel to see the result, and still won't let me drag and drop. You can find the example code here [gist.github.com]. I only added lines 8, 68 and 69 to make it float.

I'm not sure if I need to do something else, but I can't get to make this work. Any help would be appreciated.

Thanks,
Salvador.
  • Quick Links