qba10
12th February 2011, 21:19
Hi
This is my code:
import Qt 4.7
Item {
width: 180
height: 60
id: root
property bool collapsedButton: true
(...)
ParallelAnimation {
running:root.collapsedButton
NumberAnimation { target: backgroundCallapsed; property: "width"; to: 64 ;}
NumberAnimation { target: background; property: "opacity"; to: 0 }
NumberAnimation { target: text; property: "opacity"; to: 0 }
}
(...)
Thie code does not work, but when I change "root.collapsedButton" form running to "true" this script work
This is my code:
import Qt 4.7
Item {
width: 180
height: 60
id: root
property bool collapsedButton: true
(...)
ParallelAnimation {
running:root.collapsedButton
NumberAnimation { target: backgroundCallapsed; property: "width"; to: 64 ;}
NumberAnimation { target: background; property: "opacity"; to: 0 }
NumberAnimation { target: text; property: "opacity"; to: 0 }
}
(...)
Thie code does not work, but when I change "root.collapsedButton" form running to "true" this script work