-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
4.7.1
-
None
-
PC Ubuntu 10.04
-
e06211e4c67c0c7470fdac86c3fa6d50792516c5 (qt/tqtc-qtdeclarative/5.12.0)
The code below outputs the following 3 lines:
rectangle updated toprect.width=320 rectangle updated toprect.width=640 rectangle updated toprect.width=320
Why the toprect.width is set to 640 pixels ? This cause an useless property binding.
This bug only happens with the qmlviewer.
import Qt 4.7
Rectangle {
id: toprect
width: 320
height: 240
Rectangle {
color:"yellow"
width: { console.log("rectangle updated toprect.width="+toprect.width); toprect.width*2/3 }
height: toprect.height*2/3
}
Text {
anchors.centerIn: parent
text: "Hello World"
}
}