On 8 November 2013 10:01, Yves Bailly <yves.bai...@sescoi.fr> wrote:
>
> As a float is 4 bytes, I would expect the second f.pos() to display "4"... but
> it displays "8", as if QDataStream had moved 8 bytes ahead instead of just 4.
> Needless to say, the read float is wrong...
>
> Am I missing something here, or is it a bug?

See QDataStream::setFloatingPointPrecision. The default is double.

HTH,
-- 
Giuseppe D'Angelo
_______________________________________________
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to