The code in this example can be found in <QICSDIR>/examples/tree.
For more information about tree in table, see QicsTreeTable class.