PDA

View Full Version : QTreeView select parent nodes



mqt
31st July 2013, 12:46
I am using a QTreeView. I have three levels of nodes.

1) I want to restrict the user to select/edit only the last level of Nodes
2) When the user select a last level node, I want to highlight all its parents till root level
3) When the user select a last level node, I want to programattically get entire string path from root to selected item (last level)

Any sample code is appreciated. Thanks in advance

Santosh Reddy
31st July 2013, 18:41
What is the model are you using? Standard/File/Custom...?

mqt
1st August 2013, 06:01
I am using Standard Model.