【发布时间】:2013-03-27 02:34:00
【问题描述】:
我已经使用 repeater
定义了一个如下所示的网格Grid {
id: grid
x: 8;y:8
clip: true
smooth: false
rows: 6; columns: 6; spacing: 3
Repeater {
id:table
model:36
Cell { //an item created by me
clip:true
color:"blue"
}
}
}
我想获取 grid 中任何 cell 的位置。为此,在 QML 文件的某个地方,我写了 x:table.itemAt(3).Center
但 itemAt 不起作用。其实我在写的时候 桌子。 QT 未在建议工具提示中显示 itemAt。 怎么办?
【问题讨论】:
-
这是 Qt,而不是 QT,这可能意味着 QuickTime,这绝对不是您想要的。如果确实解决了您的问题,请接受给出的答案