headerDelegate: Component {
id: tableDelegate
//绘制表头Item边框边缘,可以拖动
Rectangle {
id: tableBorder
height: 30
color: "#D3D3D3"
// 绘制表头Item content
Rectangle {
id: rect
anchors.margins: 1 // item边框分界线
anchors.fill: parent
Text {
anchors.centerIn: rect
text: styleData.value
elide: Text.ElideRight //文字越界用省略号
wrapMode: Text.NoWrap
width: parent.width
color: "black"
leftPadding: 10
}
}
}
}