【发布时间】:2012-10-27 13:46:20
【问题描述】:
你能告诉我下面的代码有什么方法可以改变 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"
}
}
}
}
【问题讨论】:
标签: qt qml repeater element qt-quick