I would very much appreciate If you can point me to some better solution, I am really struggling with XML things.
Basically, I have a list of classes that contain QExplicitlySharedDataPointer. Some of the objects may be shared by several other objects. Objects are identified by name, so the requirements are that each object will have a unique name. Those objects are stored in a dictionary (a singleton dictionary global to the application), with its name as lookup key.
I need to save the objects in the dictionary, keep the object sharing information, and I need to restore them at a later time.
The requirements are almost the same as qdesigner, except I need shareable objects.
Are you saying that the current method in qdesigner to save/restore ui file is the right way, that each class needs to have a corresponding Dom class, and the Dom class needs to have all the properties that the class has? It seems too much work in there. The example I have only requires a very light-weight base class, and there won't be more than a few hundreds of such objects in an application...





Reply With Quote


Bookmarks