[Interest] QtWebkit error while building Qt5.12.7 sources

Nyall Dawson nyall.dawson at gmail.com
Thu Feb 20 23:23:14 CET 2020

On Fri, 21 Feb 2020 at 01:52, Florian Bruhin <me at the-compiler.org> wrote:
> On Thu, Feb 20, 2020 at 09:02:13AM +1000, Nyall Dawson wrote:
> > An example: qtwebkit allows rendering of HTML content direct to a
> > QPainter surface, keeping text as text objects and other components as
> > vectors. This isn't possible in the webengine classes, at best you can
> > render a rasterized image of a page to a painter. Without this
> > capability it's impossible in Qt to render HTML content to SVG or PDF
> > files without loss of quality.
> There's QWebEnginePage::printToPdf() which does keep text as text and vectors
> as vectors.

That's useful for some cases, but it's not a replacement. It'd be far
from trivial to accurately render a PDF to a painter surface, so
printToPdf can only be used in the limited case that you just require
an unchanged PDF output of HTML. If you want to render additional
content around the HTML then you're out of luck...


> Florian
> --
> me at the-compiler.org (Mail/XMPP) | https://www.qutebrowser.org
>        https://bruhin.software/ | https://github.com/sponsors/The-Compiler/
>        GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc
>              I love long mails! | https://email.is-not-s.ms/

More information about the Interest mailing list