Webview EWO Drag and Drop

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
2 posts • Page 1 of 1
GronWien
Posts:1
Joined: Fri Jan 11, 2019 12:28 pm

Webview EWO Drag and Drop

Post by GronWien »

Hi experts,

We want to drag and drop something into the Webview EWO. But there is no Drag and Drop event on the EWO.
1 of the possibilities is to set the EWO "Transparent for Mouse" and placing a rectangle behind it. Not really an option as we have to click around in the EWO.

I found this code in the Help, but I have no idea where to implement it:

/******
Drop Event
To use drag and drop for your EWO the drop event handling can be added to your EWO implementation. To add the event handling to your EWO the EWO itself (not the QWidget used inside of the EWO) must be extended with following command inside of the EWO constructor:

Code: Select all

setProperty("-droppedEvent", QLatin1String("main(string information, int dragType)"));
The arguments of the main function depend on the arguments that are passed as values inside of the signal. This means, that depending on the signal custom arguments can be implemented.

This interface is used for the drop script inside of the GEDI (as part of the property editor).
/******

Does anyone know where to place this code?

Regards,

GW

kilianvp
Posts:443
Joined: Fri Jan 16, 2015 10:29 am

Re: Webview EWO Drag and Drop

Post by kilianvp »

This code snippet is for c++ if you wanna build your own ewo

2 posts • Page 1 of 1