Hi,
I need to display the data from QAbstractItemModel to different views say to Treeview and list view. QAbstractItemModel contains a QList of structs. And struct has marks of students for 6 subjects. The Treeview should display sum of all marks, and ListView will have 6 columns and has to display each marks in separate columns. What is the best way i can do this?
Tree view sample
- marks
+-- 80
+-- 90
List view sample
col1 | col2 | col3 | col4 | col5 | col6
--------------------------------------------------
10 | 20 | 10 | 20 | 10 | 10
10 | 20 | 10 | 20 | 10 | 20
Bookmarks