path: root/qmake/Makefile.win32-g++-sh
diff options
authorGiuseppe D'Angelo <>2022-05-12 16:59:50 +0200
committerGiuseppe D'Angelo <>2022-05-18 02:21:31 +0200
commit07d80deeab64db9e10364a162f7d2b7bf9f8bb93 (patch)
treeff0f30e401cf0f45598d39cba7764ba054b1eea7 /qmake/Makefile.win32-g++-sh
parentcf3843a2684c434a4800a7c11071e77f45817b70 (diff)
QtWidgets: restore Qt 5 compatibility for save/restore stateHEADdev
Several classes in QWidget use QDataStream internally in order to save and restore state. These QDataStream usages were not versioned, meaning that if Qt changes the serialization for some datatype, then the data saved between different Qt versions becomes incompatible. Note that the save/restore API in question just produce opaque blobs as QByteArrays -- the user has no control over the QDataStream objects and thus versions. Fix by version the usages. In QHeaderView this has caused a regression because QBitArray *did* change version between Qt 5 and 6. In general, using QDataStream without explicit versioning is a mistake, so deploy the same fix elsewhere as well. Fixes: QTBUG-99487 Pick-to: 5.15 6.2 6.3 Change-Id: I82bb5c266f4e5dedc0887cbef855dccab1015e29 Reviewed-by: Volker Hilsheimer <> Reviewed-by: <>
Diffstat (limited to 'qmake/Makefile.win32-g++-sh')
0 files changed, 0 insertions, 0 deletions