Serializing Qt Data Types¶
Representations of data types that can be serialized by QDataStream
Representations of data types that can be serialized by
QDataStream
.The
QDataStream
allows you to serialize some of the Qt data types. The table below lists the data types thatQDataStream
can serialize and how they are represented. The format described below isversion 13
.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
© 2018 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.