How to save and restore Tree Items of table model
Unsolved
General and Desktop
-
How can i Serialize Tree structure and restore it back again.
my tree Item data structure looks like this.
private:
QList<TreeItem*> childItems;
Container* itemData;
TreeItem* parentItem;For a start i tried using boost Serialization and i am now able to serialize the itemData and restore it back.
But i still face the problem of serializing the tree structure.
-
I can run a recursion and serialize all the Container* itemData; items in my tree view.
-
How can i restore them back in the Tree structure in the same hierarchy.
-