[Qt-interest] QDataStream backwards incompatibility introduced in 4.6

Diego Iastrubni diegoiast at gmail.com
Thu Jan 21 16:14:29 CET 2010


Changing the constants definition would break BC. Nokia would not do this.


On Thu, Jan 21, 2010 at 4:17 PM, Murphy, Sean M. <sean.murphy at gd-ais.com>wrote:

> > To read floats from files written with a QDataStream from an older Qt,
> > you could either call stream.setVersion(11) or
> > stream.setFloatingPointPrecision(QDataStream::SinglePrecision) before
> > using the stream.
>
> Technically you should call stream.setVersion(QDataStream::Qt_4_5)
> instead of 11.  It's easier to read, as well as it being forward
> compatible.  In theory Nokia could change the values (although I'm
> pretty sure they wouldn't).
>
> Sean
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100121/883178be/attachment.html 


More information about the Qt-interest-old mailing list