[webkit-qt] Drag and Drop in DRT

Robert Hogan lists at roberthogan.net
Fri Mar 26 12:59:07 PDT 2010


On Thursday 25 March 2010 22:18:10 Robert Hogan wrote:
> 
> So drag->exec(), and the event loop it creates is the culprit somehow.
>  The eventfilter() in dndx11.cpp has:
> 
>     } else if (e->type() == QEvent::MouseButtonRelease) {
>         DEBUG("pre drop");
>         qApp->removeEventFilter(this);
>         if (willDrop)
>             drop();
>         else
>             cancel();
>         DEBUG("drop, resetting object");
>         beingCancelled = false;
>         eventLoop->exit();
>         return true;
>     }
> 

I think I get it now - the mouseRelease() needs to be sent to the QDrag 
object, or possibly even QDragManager (god forbid),  not QWebView. 

Ouch.


More information about the webkit-qt mailing list