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 ?
↧