[Qt-qml] Transition enabled property (suggestion)
Adriano Rezende
adriano.rezende at openbossa.org
Fri Oct 15 15:51:40 CEST 2010
On Thu, Oct 14, 2010 at 10:33 PM, <michael.brasser at nokia.com> wrote:
> 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
> }
Thanks, I've added the suggestion.
Br,
Adriano
More information about the Qt-qml
mailing list