我有错误
ReferenceError: redRow 未定义
在这段代码上:
Repeater {
property int redRow: 0
...
Image {
...
anchors.bottom: parent.bottom
anchors.bottomMargin: height / 16 + height * redRow
...
}
如果我把
property int redRow: 0
在文件的开头 - 好吧,为什么我没有机会把它放在中继器元素中?