[Qt-qml] Working with [svg] Art
Jason H
scorp1us at yahoo.com
Tue Jul 13 11:07:15 CEST 2010
I've used border images before with regular qt. I was hoping for something much more structured that could refer to inner elements for manipulation and animation. Doing things like adding gloss is way easier in SVG.
-J
On Jul 13, 2010, at 4:40 AM, Ivan De Marino <ivan.de.marino at gmail.com> wrote:
> Small advice: PNG + the BorderImage QML element are your best friends ;)
>
> I'm building good-looking UIs using this tandem and works good and fast.
> Of course, the designer has to understand the BorderImage Element qualities and limits, but it shouldn't take much.
>
> On 13 July 2010 01:40, <warwick.allison at nokia.com> wrote:
> > Is there any way to integrate SVGs with QML, in that you can bridge
> > into the artwork via id or object name and thus use SVG as templates and
> > artwork?
>
> The only support for SVG in QML is that it will load a static SVG image (rendering it once unless you modify the Image sourceSize dynamically).
>
> The reason for this is that SVG is far too slow on devices, at least as currently bound in Qt (it goes via QPainter, for example).
>
> For example, an SVG consisting of just 3 ellipses is more than 10 times slower to render than painting a pixmap. We can't see that it is reasonable to trade such performance penalty for any visual appeal that SVG could bring over static pixmaps.
>
> It seems that SVG is fine as a source image format, but not really practical on devices as the runtime format.
>
> > A slightly easier, but not as awesome step would have a XML->QML
> > converter...
> > Are there any plans along these lines?
>
> None that I'm aware of.
>
> --
> Warwick
>
> _______________________________________________
> Qt-qml mailing list
> Qt-qml at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-qml
>
>
>
> --
> Ivan De Marino | Software Engineer | France Telecom R&D UK - Orange Labs
> w. +44 20 8849 5806 | m. +44 7515 955 861 | m. +44 7974 156 216
> ivan[dot]demarino[at]orange-ftgroup.com | ivan[dot]de[dot]marino[at]gmail[dot]com
> www.detronizator.org | www.linkedin.com/in/ivandemarino
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20100713/e47d1e28/attachment.html
More information about the Qt-qml
mailing list