[Qt-qml] SmoothedAnimation Soul Searching
bea.lam at nokia.com
bea.lam at nokia.com
Tue Sep 7 02:42:30 CEST 2010
On 03/09/2010, at 8:10 PM, ext Alan Alpert wrote:
> I'm looking for some feedback on what people think the real use case for
> SmoothedAnimation is. There's currently two different cases that I'm looking
> into.
>
> A) Move from point C to point D, smoothly, where point D doesn't change
> (much).
> B) Move from point C to point D, smoothly, where point D is an animating or
> constantly changing value.
>
[...]
>
> Where I need some help is not only in verifying the reasoning I just threw out
> there. I'm not yet convinced that option B is common enough to be a valid use
> case. Does anyone know of a non-contrived example where you genuinely want
> behavior B and not A?
>
I've seen Case B to be useful when auto-scrolling a view where the content height continuously changes (e.g. because new items are being added constantly, or items have variable height and are resized as they are loaded). In this case NumberAnimation is too jerky since it restarts whenever the target value changes.
Bea
More information about the Qt-qml
mailing list