[Qt-interest] QVariant::save: unable to save type X
Thiago Macieira
thiago at kde.org
Wed Jun 9 19:54:14 CEST 2010
Em Quarta-feira 9. Junho 2010, às 17.00.35, Josiah Bryan escreveu:
> qRegisterMetaType<AbstractVisualItem::FillType>("AbstractVisualItem::FillTy
> pe");
>
> It works perfectly! No warning, the variant saves the value for the enum
> - it's all kittens and sparkles.
>
> So, am I misusing qRegisterMetaType or is this a bug? A one word answer
> saying something like, "misusing" is just fine - I just want to know if
> I'm wrong or right.
No, you're using it correctly.
But I would probably forgot to use qRegisterMetaTypeStreamOperators.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Senior Product Manager - Nokia, Qt Development Frameworks
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/20100609/fb0d9cc8/attachment.bin
More information about the Qt-interest-old
mailing list