[Gambas-user] gb.webkit Webview current element

Benoît Minisini gambas at ...1...
Sat Sep 29 03:41:12 CEST 2012


Le 29/09/2012 02:26, Bruce a écrit :
> Morning all,
>
> Does anyone know a way to get the html element under the mouse pointer
> in the webview on a MouseDown or MouseUp event?  I have been through
> much of the webkit site and the w3schools javascript site and can't find
> anything that seems to offer this.
>
> tia
> Bruce
>

At the moment gb.qt4.webkit don't provide any access to the underlying 
DOM and HTML structure of the page.

You can only use the WebView.HitTest() method to know if the mouse is on 
an image, a selected contents, an editable contents or a link, and in 
that last case you can get the link URL.

Some work could be done there. Do you really need a full access to the DOM?

-- 
Benoît Minisini




More information about the User mailing list