QTreeView_example This project is aimed to help people understand in detail a question I asked at stack overflow It can be compiled like this: $ mkdir build $ cd build $ cmake .. $ make The binary will be created in the bin folder.