My problem rather doesn't need use tree model (but datailed info could be also treated as child) so I think list could be enough. I want to create list of items with few standard informations showed in table (header 1, 2 and 3- all QString), and few additional details showed while item is chose (QStrings and e.g Picture- items could have different number of additional informations it depends on their type represented by header1). List must be sortable by column and must be filtered. I think that's all. At this moment using TreeView I get almost all facilities except includind detail informations.
I store items informations in txt files in form:
item1header1_item1header2_item1header3_item1info1_ item1info2_item1info3
item2header1_item2header2_item2header3_item2info1_ item1info5
item3header1_item3header2_item3header3_item3info1_ item3info2_item3info3
and general info about types:
header1a_header2_header3_info1_info2_info3
header1b_header2_header3_info1_info5
I firstly upload second file with headers for every type( this fragment of code isn't included in code which I posted) and in next step file with informations for every item, and depending on header1 I know which attributes should have chosen item. eg when header1a= item1header1 I know that this item should 6 informations about it (header1,header2,header3,info1,info2,info3)
sample.jpg
Bookmarks