I want to my programme works as:
My programme has one or more root nodes.
Each node has no or one or more nodes 、leaf.
Each node and leaf have own property ,such as name、icon、ID. Some property will display(such as name),some will not display(such as ID).
I inherit my TreeItem form QStandardItem and inherit my TreeModel from QStandardItemModel. Is it suitable?
I cannot completely understand QStandardItem.Could you give me more helps?Thanks a lot.
Bookmarks