[Qt-interest] QDataStream backwards incompatibility introduced in 4.6

André Fillipe andref at syst.com.br
Thu Jan 21 16:24:01 CET 2010


2010/1/21 Lene Preuss <lene.preuss at googlemail.com>

> Hi list,
>
> [...]
>
> The output on my system is:
> 0.0078125
> 0
> 0
> not, as you might expect,
> 1.0
> 0.429043
> 1.2
>

Why would this be expected behavior? The writeFile and readFile functions
use different stream versions. Floats written by Qt 4.5 are correctly read
by Qt 4.6 if the stream version is set appropriately. Am I missing
something?

-- 
André Fillipe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100121/26a8a3d6/attachment.html 


More information about the Qt-interest-old mailing list