0

rv drapdrop events setReturnContent

Hello,

I'm trying to handle drag drop events from another Qt widget onto the Main RV view.

I'm not able to set setReturnContent on the event.

def drag_drop_enter(self, event):
   event.setReturnContent(string_with_path_to_image)

Which throws this error:

ERROR: Bad argument
event.setReturnContent(string_with_path_to_image)

In event incoming-source-path I can use setReturnContent without any errors.
Any ideas?

7.3.1 on linux

Thanks!

0 条评论

  • 0
    Avatar
    Johan

    Forgot this bit, this is the event added to the mode

    dragdrop_enter_event = ("dragdrop--enter", self.drag_drop_enter, "dragdrop enter")

请先登录再写评论。