There's a kind of reusable element that have the property of Rectangle type:
property Item middleRegion: Rectangle {
color: "grey";
border.width: 1;
height: line.height;
parent: line
}
Then, if an user defines own middleRegion, onMiddleRegionChanged() is called:
onMiddleRegionChanged: {
middleRegion.parent = line
middleRegion.height = line.height
}
But, despite of the fact that line.height is changed, middleRegion.height isn't changed after it. Why does binding not work in this code?
The important thing that if user doesn't defined middleRegion, everything's going well.