yangyunzhao
14th August 2009, 02:10
I want to my programme works as:
http://www.qtcentre.org/forum/attachment.php?attachmentid=3563&stc=1&d=1250211726
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.
http://www.qtcentre.org/forum/attachment.php?attachmentid=3563&stc=1&d=1250211726
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.