Re: [Interest] Animating a gradient

2015-11-18 Thread Jason H
H" > Cc: "interest@qt-project.org" > Subject: Re: [Interest] Animating a gradient > > Ok, that’s explain also because onPositionChanged does not work. > The property has no signal notify changes. So, it means you cannot do what > you want. > > So, my workar

Re: [Interest] Animating a gradient

2015-11-18 Thread Gian Maxera
pends on non-NOTIFYable > properties: >QQuickGradientStop::position > > Does anyone know why these aren't NOTIFYable? > > >> Sent: Tuesday, November 17, 2015 at 4:16 PM >> From: Gianluca >> To: "Jason H" >> Cc: "interest@qt-projec

Re: [Interest] Animating a gradient

2015-11-18 Thread Jason H
nluca > To: "Jason H" > Cc: "interest@qt-project.org" > Subject: Re: [Interest] Animating a gradient > > Hello Jason, > why you don’t simple use property binding ? > > GradientStop { id: gs2; position: gs1.position+0.1; color: "dodgerblue" } &

Re: [Interest] Animating a gradient

2015-11-17 Thread Gianluca
Hello Jason, why you don’t simple use property binding ? GradientStop { id: gs2; position: gs1.position+0.1; color: "dodgerblue" } and remove completely onPositionChanged Ciao, Gianluca. Il giorno 17/nov/2015, alle ore 20:39, Jason H ha scritto: > I want to animate a gradient, but onPosition

[Interest] Animating a gradient

2015-11-17 Thread Jason H
I want to animate a gradient, but onPositionChanged gives an error, even though I can animate it. What am I doing wrong? Item { property alias color: container.color Component.onCompleted: anim.start() Rectangle { id: container width: paren