<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Aug 1, 2013 at 1:49 AM, Albert Astals Cid <span dir="ltr"><<a href="mailto:aacid@kde.org" target="_blank">aacid@kde.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">El Dimecres, 31 de juliol de 2013, a les 23:32:46, Jaydeep Solanki va<br>
<div><div class="h5">escriure:<br>
> On Wed, Jul 31, 2013 at 3:13 AM, Albert Astals Cid <<a href="mailto:aacid@kde.org">aacid@kde.org</a>> wrote:<br>
> > El Dimarts, 30 de juliol de 2013, a les 11:19:45, Jaydeep Solanki va<br>
> ><br>
> > escriure:<br>
> > > On Tue, Jul 30, 2013 at 1:41 AM, Albert Astals Cid <<a href="mailto:aacid@kde.org">aacid@kde.org</a>><br>
> ><br>
> > wrote:<br>
> > > > El Dilluns, 29 de juliol de 2013, a les 23:57:38, Jaydeep Solanki va<br>
> > > ><br>
> > > > escriure:<br>
> > > > > Hi,<br>
> > > > > As compared to other days, I didn't do much today.<br>
> > > > ><br>
> > > > > But found some really interesting facts about our image not loading<br>
> > > ><br>
> > > > problem.<br>
> > > ><br>
> > > > > I know it's not possible but some how the override is not called<br>
> ><br>
> > instead<br>
> ><br>
> > > > > the default implementation is called, I found out this by placing<br>
> > > > > the<br>
> > > > > images next to the binary and it works. Images load, which<br>
> > > > > indirectly<br>
> > > > > indicates that it is loading using default implementation.<br>
> > > > ><br>
> > > > > I also tried removing the override, and having the images next to<br>
> > > > > the<br>
> > > > > binary, everything works.<br>
> > > > ><br>
> > > > > If you have any hint, I would really appreciate it, because I'm<br>
> ><br>
> > really<br>
> ><br>
> > > > > in<br>
> > > > > need of one.<br>
> > > ><br>
> > > > Have you tried debugging it? At some point in Qt there has to call<br>
> > > > loadResource? What about putting a breakpoint in<br>
> > > > QTextDocument::loadResource<br>
> > > > and see what happens?<br>
> > ><br>
> > > I tried it in the first place, but it doesn't hit the break point,<br>
> > > that's<br>
> > > how I concluded loadResource is not called.<br>
> > > It hits the breakpoint for other files.<br>
> ><br>
> > You set the breakpoint in EpubDocument::loadResource or<br>
> > QTextDocument::loadResource?<br>
><br>
> EpubDocument::loadResource<br>
<br>
</div></div>So you say that QTextDocument is somehow loading a file without using<br>
loadResource?<br></blockquote><div> yes, without using the EpubDocument::loadResource(), but it uses QTextDocument::loadResource(). I can say that because if resources are next to binary, it loads.<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><br>
> > Again, do you have a small test case?<br>
><br>
> sadly no<br>
<br>
</div>How big is the test case then?<br></blockquote><div>I have a mini version of the epub that shows this behaviour, that's all I have. <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Cheers,<br>
Albert<br>
<div class="HOEnZb"><div class="h5"><br>
><br>
> > Albert<br>
> ><br>
> > > > > Also, I have started discovering QTextDocument source. It has a<br>
> > > > > class<br>
> > > ><br>
> > > > named<br>
> > > ><br>
> > > > > QTextHtmlParser that does all the magic, I saw how it categorises<br>
> ><br>
> > Html<br>
> ><br>
> > > > > elements, but I'm still not sure how it handles Css. I'll look into<br>
> ><br>
> > it<br>
> ><br>
> > > > > further.<br>
> > > ><br>
> > > > Cool :-)<br>
> > > ><br>
> > > > > BTW, do you also contribute to Qt ? I saw you on #qt-labs.<br>
> > > ><br>
> > > > I have done some small patches here and there, yes.<br>
> > > ><br>
> > > > Cheers,<br>
> > > ><br>
> > > > Albert<br>
> > > ><br>
> > > > > Cheers,<br>
> > > > > Jaydeep<br>
> > > ><br>
> > > > _______________________________________________<br>
> > > > Okular-devel mailing list<br>
> > > > <a href="mailto:Okular-devel@kde.org">Okular-devel@kde.org</a><br>
> > > > <a href="https://mail.kde.org/mailman/listinfo/okular-devel" target="_blank">https://mail.kde.org/mailman/listinfo/okular-devel</a><br>
> ><br>
> > _______________________________________________<br>
> > Okular-devel mailing list<br>
> > <a href="mailto:Okular-devel@kde.org">Okular-devel@kde.org</a><br>
> > <a href="https://mail.kde.org/mailman/listinfo/okular-devel" target="_blank">https://mail.kde.org/mailman/listinfo/okular-devel</a><br>
<br>
_______________________________________________<br>
Okular-devel mailing list<br>
<a href="mailto:Okular-devel@kde.org">Okular-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/okular-devel" target="_blank">https://mail.kde.org/mailman/listinfo/okular-devel</a><br>
</div></div></blockquote></div><br></div></div>