Код: Выделить всё
TreeView {
id: tree_view
model: root.m_model // defined in C++
selectionModel: ItemSelectionModel {
id: selection_model
}
DropArea {
id: drop_area
anchors.fill: parent
onDropped: (drag) => { //
Подробнее здесь: [url]https://stackoverflow.com/questions/79082687/drag-and-drop-support-for-treeview[/url]