Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

Wrong behavior with State's extend property

$
0
0
Hi everyone, I was playing around with States in QML when I found out a strange behavior. Considering this case State {     name: "mainState"     when: firstBool   }   State {     name: "subStateOfMain"     when: secondBool     extend: "mainState" } In my sense we are in : mainState when and only when : firstBool &&  !secondBool subStateOfMain when and only when : firstBool && secondBool What really happens with Qt is that it does a OR instead of a AND for the extender State ( “subStateOfMain” here ). Does anyone else has the same issue or feel that what I described should be the actual behavior ?

Viewing all articles
Browse latest Browse all 4972

Trending Articles