Re: [Qt-qml] Flippable example: some questions

2010-08-06 Thread Stephen Collyer
On 5 August 2010 20:32, Eduardo Fleury wrote: > > > I don't know how clear it is, but the docs are here > > http://doc.qt.nokia.com/4.7-snapshot/qdeclarativestates.html > > Thanks a lot, I think that's clearer now. >> > Those docs are apparently more up-to-date than what I have in Assistant, whic

Re: [Qt-qml] Flippable example: some questions

2010-08-05 Thread Eduardo Fleury
Hi Stephen On Thu, Aug 5, 2010 at 11:54 AM, Stephen Collyer wrote: > OK, I see what's going on now. But is this documented ? I can't find > anything in the docs that decribe this behaviour of returning to the > previous state (or does it, in fact, return to the default state, if it has > no > mor

Re: [Qt-qml] Flippable example: some questions

2010-08-05 Thread Stephen Collyer
On 4 August 2010 23:43, Eduardo Fleury wrote: > > > 1) The item enters the "back" state when flipped is true, >> but I can't see anything that should occur when flipped is >> false. > > > Well, when "flipped" is false, the "when" condition for the "back" state > becomes false. > If the Item can

Re: [Qt-qml] Flippable example: some questions

2010-08-04 Thread Eduardo Fleury
Hi there I think you are missing a concept regarding how states work in QtQuick. Every item has an implicit state called "". By default every item starts in that state with the initial properties set. With that in mind, the following makes more sense. On Wed, Aug 4, 2010 at 1:17 PM, Stephen Col

[Qt-qml] Flippable example: some questions

2010-08-04 Thread Stephen Collyer
The following example comes from the docs for Flippable: import Qt 4.7 Flipable { id: flipable width: 240 height: 240 property int angle: 0 property bool flipped: false front: Image { source: "front.png" } back: Image { source: "back.png" } transform: Rotation { origin.x: flipable.width/2; ori