On 11/12/2010 08:56 PM, ext Tarandeep Singh wrote:
I want to get geometry of text (top, left coordinates, bounding box etc)
of an html page.
The QWebElement class let me traverse the dom and I can get geometry of
each element, but it does not represent text as an element.
Can anyone please tell me how to do this.
You cannot.
Text geometry cannot be expressed by the DOM. For example, take a text
with a floating element next do it. The text as seen as one element in
the DOM is spitted visually.
cheers,
Benjamin
_______________________________________________
webkit-qt mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-qt