Re: [Qt-qml] Working with [svg] Art

2010-07-13 Thread warwick.allison
> 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.

Sure, and that's what you should be doing in your image editor.

Then save as as few PNGs as possible (preferably one) and compose.

QML is about high performance beautiful graphics, leaving the 
easy-way-to-make-an-image problem to Photoshop, Gimp, and Inkscape.

For animation... well, that's also what QML does natively. Feel free to write 
an SVG-to-minimal-QML-and-images converter!

--
Warwick

___
Qt-qml mailing list
Qt-qml@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-qml


Re: [Qt-qml] Working with [svg] Art

2010-07-13 Thread Jason H
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  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,  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@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
___
Qt-qml mailing list
Qt-qml@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-qml


Re: [Qt-qml] Working with [svg] Art

2010-07-13 Thread Ivan De Marino
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,  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@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
___
Qt-qml mailing list
Qt-qml@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-qml


Re: [Qt-qml] Working with [svg] Art

2010-07-12 Thread warwick.allison
> 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@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-qml