[Kde-games-devel] Re: Qt5 outlook
Stefan Majewsky
stefan.majewsky at googlemail.com
Sun May 15 02:00:50 CEST 2011
On Fri, May 13, 2011 at 5:29 PM, Parker Coates
<parker.coates at kdemail.net> wrote:
> The problem is that
> QSvgRenderer provided a nice simple API to render SVGs, whereas I've
> yet to see a clear demonstration of application SVG rendering via
> QtWebkit.
Without having tested this, and without having any QtWebkit experience
beyond hear-say, I think the main idea is to get the QWebElement for
the SVG element, then
webElement->geometry() == svgRenderer->boundingRect(element)
webElement->render(painter) == svgRenderer->render(painter)
Having said that, I doubt this is so much of a problem. As I have
understood the source compatibility promise, QtSvg is not going away
in Qt 5, so we can use it at least until Qt 6 if QtWebkit does not
offer the required speed, functionality, or whatever. And if all else
fails, we can still fork it as a private library. (IIRC ~7000 LOC,
which is still quite maintainable)
Greetings
Stefan
More information about the kde-games-devel
mailing list