[Qt-qml] Flipable not showing content
Almo Nito
AlmoNito at gmx.de
Fri Sep 24 20:00:33 CEST 2010
Hello there, i have a Flippable like the one in the flipabe example
And I am wondering why it never shows anything, neither front or back
Cant I use ids as front and back? do I have to place the real item there?
Flipable {
id:infoflip
property bool flipped: true
property int xAxis: 0
property int yAxis: 0
property int angle: 0
state:"back"
front:browser
back:information
transform: Rotation {
id: rotation; origin.x: infoflip.width / 2; origin.y:
infoflip.height / 2
axis.x: infoflip.xAxis; axis.y: infoflip.yAxis; axis.z: 0
}
states: [
State {
name: "back"; when: infoflip.flipped
PropertyChanges { target: rotation; angle: infoflip.angle }
},
State {
name: "front"; when: !infoflip.flipped
PropertyChanges { target: rotation; angle: infoflip.angle }
}
]
transitions: Transition {
from: '*'; to: 'front'
ParallelAnimation {
NumberAnimation { target: rotation; properties:
"angle"; duration: 600 }
SequentialAnimation {
NumberAnimation { target: infoflip; property:
"scale"; to: 0.75; duration: 300 }
NumberAnimation { target: infoflip; property:
"scale"; to: 1.0; duration: 300 }
}
}
}
}
Item {
id: information
x:0
y:0
width:400
height:300
anchors.centerIn:parent
Rectangle {
id:inforect
color:"black"
x:0
y:0
width:parent.width
height:parent.height
}
}
Item {
id:browser
....
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20100924/db37dbef/attachment.html
More information about the Qt-qml
mailing list