We really should not be serializing Qt types like that. We should only support arrays of basic C types and the application takes care of serializing and deserializing Qt types.