Select/Highlight multiple rows in TreeView programatically



  • Hi,
    I have a TreeView and an array containing ModelIndexes from that tree. The treeview's selectionMode is set to Controls.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?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.