Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.7.0
-
None
-
Mac
-
06ef198e0812b514c261ef8f7c82db754450f1fa, 7fb140b63f03b96064ded4ec6f2ec7c93e87b825
Description
The first time you set the transformOriginPoint of an item, the setting is ignored.
In the example below - click the "Set rotation" button. The red square is rotated about the centre point, even though the transform origin is set to 10, 10. Click "Reset" then do it again. This time the correct origin is used.
iimport Qt 4.7
Rectangle {
width: 400
height: 400
Rectangle
{ id: fred x: 100 y: 100 width: 200 height: 200 color: "red" } Rectangle {
y: 270
width: 100
height: 30
color: "grey"
Text
MouseArea {
anchors.fill: parent
onClicked:
}
}
Rectangle {
y: 310
width: 100
height: 30
color: "grey"
Text
MouseArea {
anchors.fill: parent
onClicked:
}
}
}