On 12/16/2010 08:26 AM, ext 侃 wrote:
> Now I get a problem. Cause I need to realize a function that scale
> the picture to fit the screen's width when I double hit the image, I
> need to know to the size of the image I hit.
>
> I notice that there is a class "renderImage" ,  but it live in the
> but I don't know how access it.

Just use the QWebFrame::hitTestContent() to get the QWebElement of your image, and you get the geometry directly from the element.

cheers,
Benjamin
_______________________________________________
webkit-qt mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-qt

Reply via email to