16,203
社区成员
发帖
与我相关
我的任务
分享
import QtQuick 1.0
Item {
id: pyinlist
width: 633; height: 62
Component{
id: contactDelegate
Chinese_button{
width: 50; height: 50
content1: modelData;
content2: ListView.column.toString();//我想获取对于的Column 的数据 如何实现?
}
}
Component{
id:hightlight
Rectangle{color: "lightsteelblue"; radius: 5}
}
ListView{
x: 0
anchors.fill: parent
y: 0
opacity: 1
anchors.bottomMargin: 0
anchors.leftMargin: 0
anchors.rightMargin: 0
anchors.topMargin: 0
model: m_pyin
orientation : ListView.Horizontal;
delegate: contactDelegate
clip: true
}
}