Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
请教大家我写了一个qml treeview,并给它加上了复选框通过下面方式:```
itemDelegate: CheckBox{ id:checkbox // tristate:styleData.hasChildren ? true : false indicator.height: 20 indicator.width: 20 text: styleData.value } 这样可以添加复选框,但是当我想要添加一些逻辑比如选择父项所有子项全选,不知道该怎么操作了,谁能帮帮我?