khtml parser

Aaron J. Seigo aseigo at kde.org
Thu Apr 7 17:16:26 BST 2005


On Thursday 07 April 2005 06:20, Darko Radosavljevic wrote:
> For that purpose, am trying to use khtml library. I just want to pass
> url, pars it and  create image of rendered html page "device
> context"?!
>
> Can anyone tell me which class implements parser?

take a look at kdebase/kioslave/thumbnail/htmlcreator.h and 
kdebase/kioslave/thumbnail/htmlcreator.cpp ...

basically it loads a KHTMLPart and asks it to render the HTML. it's just a few 
dozen lines of code... quite easy to do =)

-- 
Aaron J. Seigo
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20050407/3f6fa4b6/attachment.sig>


More information about the kfm-devel mailing list