So I’ve been using :
treeView.setCurrentIndex( index )
to set the active item in my treeView. But if I have an array of item indices that I would like to select, how do I add to my currently selected item?
Thx!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A QTreeView doesn’t have as many bundled methods as a QTreeWidget, so you have to drop down to the other components for some functionality. In this case, you might want to use the SelectionModel.