[webkit-qt] construct a render tree using qtwebkit

zhoupeng19@126.com zhoupeng19 at 126.com
Mon Feb 21 01:00:24 PST 2011


Hi,guys!
I need to parsing a HTML page,and then construct a render tree.But i can't understood the documentation 
of qtwebkit(maybe i'm stupid),so,can anybody answer few qustion for me:
1)How to traversal the DOM tree using qtwebkit?
  http://stackoverflow.com/questions/1172928/how-to-access-dom-of-a-web-page-in-qtwebkit
  On this link, it is said that there is not any direct way to access a DOM tree,is it true?If i can't   
access the DOM tree,how can i construct a render tree?
2)How to get the layout infomation?eg:
  <html>
     <body>
     <p><span style="color:#ff0000">test</span></p>
     <img src="1.jpg"/>
     </body>
  </html>
  how to get the color of "test",and how to get the coordinates of the imagine?
Apologize for my poor english!


        Zhou Peng
        zhoupeng19 at 126.com 
          2011-02-21 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-qt/attachments/20110221/910210fc/attachment.html>


More information about the webkit-qt mailing list