Tree View with Tree Model where sub items have their own columns / different structure



Hi all,

I found the example for tree views here: 
https://developer.gnome.org/gtkmm-tutorial/stable/sec-treeview-examples.html.en
In section "9.8.2.‚ÄÉTreeStore" I see, that sub items contain the same elements as the parent items.

The example given in the linked web side provides something like this:

X1,Y1,Z1
  X11,Y11,Z11
  X12,Y12,Z12
X2,Y2,Z2

and so on...


What I search for is a tree view which has instead the following structure:

X1 
  Y11
  Y12
X2
  Y21
  Y22
     Z221

and so on.


How can I build up a tree view / model which gives me a representation and view as given in above example?

Regards
 Klaus


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]