What I have done is by following qt designer, by making various Dom objects and let QXmlStreamReader/QXmlStreamWriter read/write the data.
I don't think Qt people would make such mistake by not even providing a virtual destructor if they think people could use it as a based class, of course C++ doesn't stop people from doing it...unlike the keyword "final" in java...
Bookmarks