On 6 March 2015 at 11:31, Anton Lundin <[email protected]> wrote:
> On 06 March, 2015 - Robert Helling wrote:
>
>> Hi,
>>
>> > On 06.03.2015, at 00:52, Gehad Elrobey <[email protected]> wrote:
>> >
>> > I managed to print a QTextDocument directly after generating the HTML code 
>> > by Grantlee with Qt5.
>> > I attached a pdf of the print out.
>>
>> as I said, my worry is not so much that you can use templates to generate 
>> some html. I am concerned that the Qt subset of html is not expressive 
>> enough to produce decent layouts beyond simple tables. To get an idea what 
>> people’s paper divelogs look like in the wild, do a google image search for 
>> “dive log template”. Compared to what we have now, we need much better 
>> control over spacing (inclunding whitespace, there we currently waste far 
>> too much precious room on the paper), fields for which we don’t have 
>> information should in many cases not be displayed and the room be used for 
>> what we actually have etc. For me, for example, beyond the very basic 
>> information (date, depth, time, location, buddy), the notes are by far the 
>> most important textual element and should occupy sufficient room (in a 
>> decent font size).
>
> As far as i can understand http://qt-project.org/wiki/QtWebEngine , Qt's
> html renderer is based on chromium so i don't think its lacking any
> bells and whistles.
>
>

TMK there are a couple of engines. there is one which is used by
QTextDocument, which is a HTML subset and lacks at certain areas like
CSS, and the other one is the WebKit engine which is like the backend
of a full-blown modern browser.

like i said in the previous email, i'm pretty sure we are going to
need WebKit, because QTextDocument is going to soon become sub-par for
our needs, which opens two questions:
- how fast is the WebKit rendering to QPicture / QPixmap?
- do we care that the Windows package is going to inflate 30+MB for
the release build (also it's probably going to require ICU which is
another 20+MB unless there is a way to use WebKit without ICU)?

lubomir
--
_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to