[Okular-devel] demo epub - using webkit
Jaydeep Solanki
jaydp17 at gmail.com
Sat May 4 20:16:34 UTC 2013
Hello,
I have created a small app that opens epub files and renders them using
webkit.
It has a lot of bugs, but I just want to verify that the approach that I'm
using is appropriate or not.
To load the resources in webview, I use a subclass of
QNetworkAccessManager, that gets the resources using libepub and passes it
as a networkreply. To make this work, I just had to prepend the src
attribute of images (<img>) with "http://" in the html, so that it asks the
assigned networkmanager to download it.
here's the github link <https://github.com/jaydeep17/Okular_Epub>.
Cheers,
Jaydeep
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/okular-devel/attachments/20130505/cd5009b9/attachment-0001.html>
More information about the Okular-devel
mailing list