I got it, guys. When we set
width: rect.width * 0.5;
is happening a binding. Not an assignment. What I should do to assign the value:
Component.onCompleted: {
width = rect.width * 0.5;
}
↧