W3cubDocs

/Qt 5.15

Serializing Qt Data Types

The QDataStream class allows you to serialize the Qt data types listed in this section as of version 18.

It is always best to cast integers to a Qt integer type, such as qint16 or quint32, when reading and writing. This ensures that you always know exactly what size integers you are reading and writing, no matter what the underlying platform and architecture the application happens to be running on.

See also JSON Support in Qt.

© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-5.15/datastreamformat.html