1
有没有办法在Rectangle
中设置旋转点并简单地使用旋转属性而没有任何其他附加组件?我想用rotation: value * 180
结合物业旋转Rectangle
这样设置矩形的旋转点
Rectangle{
id: body
rotation: value
anchors.centerIn: parent.Center
antialiasing: true
}
onValueChanged: body.rotation = value
我只有大约父的左上角旋转。请帮我理解这种行为,或者建议我以另一种方式在中心实施轮换。
谢谢,真的很有用 – user3417815