[Qt-interest] Serialize QList<qint64>

Giuseppe D'Angelo dangelog at gmail.com
Wed Jul 27 23:56:45 CEST 2011


On Wed, Jul 27, 2011 at 9:04 PM, Bruno Tezine <bruno at tezine.com> wrote:
> Hi,
> How can I serialize a QList<qint64>?

I think you're mixing up serializing with QDataStream with putting
that into a QVariant and serializing the QVariant.
The former works out of the box; the latter requires
Q_DECLARE_METATYPE, qRegisterMetaType and
qRegisterMetaTypeStreamOperators.

-- 
Giuseppe D'Angelo



More information about the Qt-interest-old mailing list