Serialisierung von Qt-Datentypen

Mit der Klasse „ QDataStream “ können Sie die in diesem Abschnitt aufgeführten Qt-Datentypen serialisieren.

Es empfiehlt sich stets, Ganzzahlen beim Lesen und Schreiben in einen Qt-Ganzzahltyp wie ` qint16 ` oder ` quint32` umzuwandeln. Dadurch wird sichergestellt, dass Sie immer genau wissen, welche Größe die gelesenen und geschriebenen Ganzzahlen haben – unabhängig von der zugrunde liegenden Plattform und Architektur, auf der die Anwendung ausgeführt wird.

Siehe auch JSON-Unterstützung in Qt und CBOR-Unterstützung in Qt.

© 2026 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.