Jump to content

Python Panel - Drag and Drop - to network view


danielsweeney

Recommended Posts

Hi everyone,

I am just wondering if Anyone can point me in the right direction for this. (or tell me if it is even possible)

currently have a QtreeWidget in a python panel and I want to be able to drag one of the items in the list from the panel into the network view anf drop the file(execute the function needed).

main trouble I am having is trying to logic working for the drag and drop events - what functions should I be looking for.

- do i need to use Pyside2 events (can manage to get feedback from dragEnterEvent() and dropEvent(), but these only work in the panel it self)

- or would it be built in events from houdini that need to be call?

im no expert on this. any gurus out there that can throw me a bone?

 

currently on hou18.

 

cheers

 

 

Daniel

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...