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")

サインインしてコメントを残してください。