I have a subclassed QItemDelegate that does some formatting for my columns already. So adding a switch in to draw the child and parent rows differently is not a problem.

The only thing I can't get my head round is how will the QItemDelegate:aint function know whether the item it is drawing is a parent item or child item and enter the correct switch path. I am sure it is simple but I just can't think how.

Royce