Hi,


You could add an id for the scale element:



transform: Scale {

  id: myScale

  origin.x: 25

  origin.y: 25

}


And use that as state property change target:


states: State {
  name: "active"
  when:myitem.activeFocus;
  PropertyChanges { target: myScale; xScale: 1.2 }
}


-    Timo


From: [email protected] 
[mailto:[email protected]] On Behalf Of 
merve t
Sent: 19. elokuuta 2011 20:51
To: [email protected]
Subject: [Qt-qml] Scale Element

Hello,

I can write lines below and got it work:

states: State {
name: "active"; when:myitem.activeFocus;
                                            PropertyChanges { target: myitem; 
z:1000; scale: 1.2 }
                                            }
                                            transitions: Transition {
                                            NumberAnimation { properties: 
scale; duration: 1000 }
}


But in these lines i can not give specific origin to scale property.

I found Scale Elment, like this:

transform: Scale { origin.x: 25; origin.y: 25; xScale: 3}


How can i inject this into state property above, because i want to use "when" 
property of state,


i want scaling to run on that "when" condition.

Thanks for any idea.


_______________________________________________
Qt-qml mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt-qml

Reply via email to