0
私はあなたがTreeView
からNode
がexpanded
ですがNode
がclosed
ときにどのように知ることができたときに知ってonExpanded
を使用することができますドキュメントTreeView docで見つかりましたか?(展開されていない)
コード例:the documentationから
TreeView {
TableViewColumn {
title: "Name"
role: "fileName"
width: 300
}
TableViewColumn {
title: "Permissions"
role: "filePermissions"
width: 100
}
model: fileSystemModel
onExpanded {
console.log("expanded :" + index)
}
}
['onCollapsed'](https://doc.qt.io/qt-5/qml-qtquick-controls-treeview.html#collapsed-signal)? –
あなたは正しいです、ありがとう! –