[Development] QDataStream: blackbox or document all versions?

Thiago Macieira thiago.macieira at intel.com
Sun Sep 25 19:40:06 CEST 2016


On domingo, 25 de setembro de 2016 14:24:29 PDT Eric Lemanisser wrote:
> 2/ as easy to use : QDataStream is able to serialize any type with the help
> of qRegisterMetaTypeStreamOperators

You only need that if you use QVariant. Regular QDataStream with non-type-
erased types doesn't require that call.

But that brings us to QDataStream's biggest advantage: the wealth of available 
operator<<.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Development mailing list