Examples

ListStore

This example has a Gtk::TreeView widget, with a Gtk::ListStore model.

Figure 8.1. TreeView - ListStore

Source Code

TreeStore

This example is very similar to the ListStore example, but uses a Gtk::TreeStore model instead, and adds children to the rows.

Figure 8.2. TreeView - TreeStore

Source Code

Editable Cells

This example is identical to the ListStore example, but it uses TreeView::append_column_editable() instead of TreeView::append_column().

Figure 8.3. TreeView - Editable Cells

Source Code