On 14/10/2010, at 5:30 AM, ext Adriano Rezende wrote:
> I have some use cases which I need to go from state "A" to "B" with
> and without transition depending on a condition. Using Transitions I
> don't see a straightforward way to do this without duplicating states.
> I think it would be nice to have an "enabled" property for Transition,
> like the one present in the Behavior component.

That sounds reasonable -- could you add a suggestion for this in the bug 
tracker please? Here's another workaround you could try in the meantime:

Transition {
    from: "A"
    to: condition ? "B" : "FakeStateName"       //the transition will animate 
"A" to "B" only when 'condition' is true
}

Regards,
Michael
_______________________________________________
Qt-qml mailing list
Qt-qml@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-qml

Reply via email to