[Qt-interest] Bounding box for text

sarvesh saran aquarian.thunder at gmail.com
Sat Jan 15 07:43:03 CET 2011


Traverse the document manually using firstChild() and nextSibling().

>From the documentation:
http://doc.qt.nokia.com/4.7-snapshot/qwebelement.html#details

Hope this helps.

thanks,
Sarvesh


On Sat, Jan 15, 2011 at 3:19 AM, Tarandeep Singh <tarandeep at gmail.com>wrote:

> Hi,
>
> I am trying to get the bounding box for the text shown on html page.
> I used the QWebFrame to iterate over the dom tree and used QWebElement's
> geometry element to get the bounding box of the html tags, however using
> this technique I can't get bounding box of the text as text are not html
> tags.
>
> Can anyone please tell me how to get the bounding box of the text or how to
> accurately calculate it from the bounding box of the parent tag and sibling
> tags. Any reference to code in qt/webkit would be very useful.
>
> thanks,
> Tarandeep
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110115/5cf19223/attachment.html 


More information about the Qt-interest-old mailing list