Hello, i am currently using qt4 to program with libpcap and i have created a table view to list all the packets coming through the network interface. Each row consists of one packet and has several columns, source IP, destination IP, Date etc.

The signal for the tableview is coming from the thread and the main gui is updating the table, but i would like to create a tree view under the table to list extra information from each row in the table.

i.e by clicking on a row in table view the tree view will show items such as MAC addresses, Port numbers etc

I am really stuck on this at the moment, i have created the table view and tree view using QStandardItemModel. Do i need to store all that information somewhere and then call it when an item in a row is clicked on?

Any help would be appreciated