[Qt-interest] Serialize QList<qint64>

Thiago Macieira thiago at kde.org
Wed Jul 27 23:22:57 CEST 2011


On Wednesday, 27 de July de 2011 16:41:07 Bruno Tezine wrote:
> If you try something simple like:
> QList<qint64> list;
> list<<1;
> QVariant::fromValue(list);
> It will not even compile under Windows MSVC2008 and Qt4.7.2.

It compiles with GCC and Qt 4.7.4, if you add outside a function:

Q_DECLARE_METATYPE(QList<qint64>)

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110727/f72459cb/attachment.bin 


More information about the Qt-interest-old mailing list