[Interest] QVariant equality

Rainer Wiesenfarth Rainer_Wiesenfarth at Trimble.com
Thu Apr 4 08:35:41 CEST 2013


From: Thiago Macieira
> [...]
> Finally, note that QVariant's equality operator compares *values*, not
types.
> 	QVariant(0LL) == QVariant(0.0) == QVariant(0) == QVariant("0")

Are you sure about the QVariant(0) == QVariant("0")? I would expect
QVariant(0) == QVariant("\0") and/or QVariant(0) == QVariant(""), but
otherwise assume that QVariant (48) == QVariant('0') == QVariant("0").

Best Regards / Mit freundlichen Grüßen
Rainer Wiesenfarth

-- 
Software Engineer | Trimble Imaging Division
Rotebühlstraße 81 | 70178 Stuttgart | Germany
Office +49 711 22881 0 | Fax +49 711 22881 11
http://www.trimble.com/geospatial/ | http://www.inpho.de/

Trimble Germany GmbH, Am Prime Parc 11, 65479 Raunheim
Eingetragen beim Amtsgericht Darmstadt unter HRB 83893,
Geschäftsführer: Dr. Frank Heimberg, Hans-Jürgen Gebauer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6490 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130404/7dda44c0/attachment.bin>


More information about the Interest mailing list