你能告诉我下面的代码有没有办法改变 imgx 元素的属性。我必须使用 javascript 更改 imgx.x 值。或者还有其他方法吗?我搜索 qt 文档但没有帮助。谢谢。
Row {
Repeater {
id:mmm
model : 10
Rectangle{
clip: true
width: 54
height: 80
color:"transparent"
Image {
id:imgx
//x:-160
//x:-105
//x:-50
x:0
source: "images/tarama_lights.png"
}
}
}
}