[Qt-qml] Transition enabled property (suggestion)
michael.brasser at nokia.com
michael.brasser at nokia.com
Fri Oct 15 03:33:02 CEST 2010
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
More information about the Qt-qml
mailing list