<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Mar 8, 2015 at 12:11 AM, Lubomir I. Ivanov <span dir="ltr"><<a href="mailto:neolit123@gmail.com" target="_blank">neolit123@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">On 7 March 2015 at 23:47, Lubomir I. Ivanov <<a href="mailto:neolit123@gmail.com">neolit123@gmail.com</a>> wrote:<br>
><br>
> one thing to figure out is how are we going to embed the profile pictures...<br>
> if we are capturing the output of a QWebPage then we first need to<br>
> show the profiles in there.<br>
> for that <img src="data: metatype, base64, theDataGoesHere" /> can be used.<br>
<br>
</span>now, there is an alternative for all that, but it's tricky...<br>
since we can use QWebFrame::render() on a QPainter that uses the<br>
QPrinter as paint device, in theory we can position a QPicture of the<br>
profile exactly over the already rendered profile HTML frame (e.g. in<br>
your PDF that would be "dive profile area"), but that's only in<br>
theory.<br></blockquote><div><br></div><div>I was thinking of using <span style="font-size:12.8000001907349px">Grantlee to generate parts of the HTML code, one part for each widget that will be placed in the layout dynamically, we can also insert the profile photos dynamically as the HTML code.</span></div><div><span style="font-size:12.8000001907349px"><br>So the Qt class will call </span><span style="font-size:12.8000001907349px">Grantlee many times to fill in the <div> s (or widgets in the main layout) dynamically and generate the full html code that can be rendered by </span><span style="font-size:12.8000001907349px">QWebPage and printed.</span></div><div><br></div></div>-- <br><div class="gmail_signature"><div dir="ltr">regards,<div>Gehad</div></div></div>
</div></div>