ListView{
id:list
clip: true
anchors.top: btn.bottom
width:root.width;
height:root.height-labe.height - btn.height
header: headerView
highlightFollowsCurrentItem: true
model: ListModel
{
id: listmodel
}
delegate:delegate //关联代理
highlight:highlight //关联高亮条
focus:true //可以获得焦点,这样就可以响应键盘了
}
有问题吗?