That is my conclusion as well. This means that if I derive a class from QMap (or some other Qt class with defined serializing operators) and add more features to it, it will be impossible for me to serialize it using QDataStream operators. I would have thought that C++ would resolve any ambiguity by taking the more specialized class (mine) over the less specialized one (QMap), but maybe the qRegisterMetaTypeStreamOperators() method is the problem and not C++ type resolution rules.I think this is because QDataStream already has an operator for serializing QMap which might come first before your specialized operator.
Bookmarks