Select/Highlight multiple rows in TreeView programatically
Unsolved
QML and Qt Quick
-
Hi,
I have a TreeView and an array containing ModelIndexes from that tree. The treeview'sselectionMode
is set toControls.SelectionMode.ExtendedSelection
.Is there a way to highlight all the rows in the tree based on the indexes in the array? I can already select just one row using
myTreeView.selection.setCurrentIndex(myindex, ItemSelectionModel.ClearAndSelect)
but I could not find a way to select/highlight multiple rows?