I am becoming frustrated as I cannot seem to come up with a good way to implement the required functions in my custom data structure to adhere to the specifications of the QAbstractItemModel. I designed this program originally as a console program and it is eventually going to become a network backup simulator for performance analysis. My custom data structure is an undirected acyclic graph of nodes which are the (networks/LANs) which have children (clients/servers) that also have children (NIC cards, storage volumes). They are all Data Movers and are based on the BUSDataMover class. I use polymorphism to make the objects functional.

Most of the examples use a central repository for data that is typically a QVector or QList of QVariants. Because of the polymorphic behavior and private members at different levels in the object hierarchy, I have tried a number of different ways to implement this and can't come up with anything that makes sense.

Does anyone have any experience with this that might lend some advice?

Thanks.
Andy