Increase serialization in Qt: is this the right way?

I am thinking about serializing data in a Qt based application.

Essentially, I'm going to serialize my hierarchical model, consisting of different classes that occur, for example, TreeModelItem:

class TreeModelItem
{
protected:
    QList<TreeModelItem *> m_children;
//...
};

Should I study boost::serializationand continue it?

Is there any hidden wall I can get to? For example. while (de) serializing children, or when restoring custom unicast connections? I hope for expert advice.

+3
source share
2 answers

QDataStream () Qt. , . "Qt" .

boost, , QList, , .

, , TreeModelItem, <.

/: afaik Qt atm, , Qt . , , , .

+3

xml , QString, QList QStringList: https://github.com/konserw/qarchive - Qt calsses ( PR !:))

0

Source: https://habr.com/ru/post/1707036/


All Articles