Re: Create Tree Structure
Start with a QTreeWidget or a QTreeView is you want to have model. Then start by hiding the header, and then work your way through the properties - preferably in Designer where you get immediate feedback.
Re: Create Tree Structure
For making the treeview/widget more static, use:
Code:
view.setItemsExpandable(false);
view.expandAll();
For making the header invisible, use:
Code:
view.setHeaderHidden(true);
rtfm
Re: Create Tree Structure
Quote:
Originally Posted by
e8johan
Start with a QTreeWidget or a QTreeView is you want to have model. Then start by hiding the header, and then work your way through the properties - preferably in Designer where you get immediate feedback.
I am using qtreewidget and qtreewidgetItem, created tree structure as well able to hide the header,but i am not able to disable or hide the expandable option.Tell me which setting is helpful for this. :)
Re: Create Tree Structure
look one post above. "view" is your qtreewidget.
Code:
view.setItemsExpandable(false);
view.expandAll();