<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 6, 2015 at 12:47 PM, 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 6 March 2015 at 01:52, Gehad Elrobey <<a href="mailto:gehadelrobey@gmail.com">gehadelrobey@gmail.com</a>> wrote:<br>
><br>
><br>
> I managed to print a QTextDocument directly after generating the HTML code<br>
> by Grantlee with Qt5.<br>
> I attached a pdf of the print out.<br>
><br>
><br>
<br>
</span>great,<br>
you also try to render it in a QWebPage if you want to test that out.<br>
<br></blockquote><div><br></div><div>I have tried to render a simple flow layout with QWebPage with Grantlee backend on Qt5, and the results seem ok I could even use some css3 effects and it rendered correctly. I attached a pdf with the output.</div><div> </div><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">
based on experiments from a couple of years ago, i'm 90% sure that we<br>
are going to need WebKit (i.e. via QWebPage) rendering to suit our<br>
needs!<br>
QTextDocument is a bit limited.<br>
<br>
also it would be nice to spark some discussions by doing a UI mockup,<br>
which is my biggest concern ATM:<br>
- what are going to present to the user in terms of UI / dialogs etc,<br>
i assume we can start with a text box for the Grantlee template<br>
generator input<br>
- how are we going to interface the table / profile separation and<br>
options - would a couple of Grantlee separate templates work for that<br>
(one for the table print, one for the profile + table print).<br>
- NxM layouts?<br>
- profile on top / table on bottom<br>
- etc...<br>
<br>
what we should aim for is to pretty much replicate what we have ATM in<br>
terms of printing (as the default template / option, if you will),<br>
while enabling customization.<br>
<br>
lubomir<br>
--<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">regards,<div>Gehad</div></div></div>
</div></div>