[Qt-interest] QVariant odd behaviour?
Thiago Macieira
thiago at kde.org
Sat Oct 8 21:11:59 CEST 2011
On Saturday, 8 de October de 2011 19:45:44 Linos wrote:
> Hi,
> should not be a return a null QVariant(QVariant::Int) .toString() method
> QString("") instead of QString("0"), it seems a bit odd for me, example
When you convert any int to QString, QVariant takes the stored value,
regardless of whether the "null" flag was active. That value was 0.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Software Architect - Intel Open Source Technology Center
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/20111008/e42ff190/attachment.bin
More information about the Qt-interest-old
mailing list