ProxyModel is deprecated... You should take a look at simple tree view example. You can make a tree model from flat sql result by choosing what columns will be the tree parent creating initiator (I'm bad with english )
For example:
Column_001 | Column_002
-----------+-----------
value_001 | value002
value_001 | value003
value_002 | value004
value_002 | value005
value_003 | value006
Column_001 | Column_002
-----------+-----------
value_001 | value002
value_001 | value003
value_002 | value004
value_002 | value005
value_003 | value006
To copy to clipboard, switch view to plain text mode
You should get (with the use of some code logic):
value_001
+-- value_002
+-- value_003
value_002
+-- value_004
+-- value_005
value_003
+-- value_006
value_001
+-- value_002
+-- value_003
value_002
+-- value_004
+-- value_005
value_003
+-- value_006
To copy to clipboard, switch view to plain text mode
Bookmarks