diff options
Diffstat (limited to 'dist')
-rw-r--r-- | dist/changes-4.6.0 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/dist/changes-4.6.0 b/dist/changes-4.6.0 index f9984d3..2e7e699 100644 --- a/dist/changes-4.6.0 +++ b/dist/changes-4.6.0 @@ -126,3 +126,11 @@ information about a particular change. means that code that assigned a float to a variant would create a variant with userType QMetaType::Float, instead of QVariant::Double. + - QDataStream will now read and write all floating point numbers with the + same precision, regardless of whether it's streamed into or out from a + float or double. This is to maintain compatibility across platforms with + a different default precision for qreal. The default is 64-bit precision + for all floating point numbers, and this can be changed using the new + function setFloatingPointPrecision(). Set Qt_4_5 as the version of the + QDataStream to get the behavior of previous versions. +
\ No newline at end of file |