我在 listview blackberry 10 qml 中创建了自定义标题。但是 listview 标头也会在 OnTriggered 事件上触发。
listItemComponents: [
ListItemComponent {
type: "header"
Container {
preferredWidth: 748
layout: DockLayout {}
Label {
text: "Custom Header"
horizontalAlignment: HorizontalAlignment.Left
verticalAlignment: VerticalAlignment.Center
textStyle{
base:SystemDefaults.TextStyles.BigText
}
}
}
}
]