Qt データ型のシリアライズ

QDataStream クラスでは、このセクションで挙げた Qt データ型をシリアライズすることができます。

整数を読み書きする際には、qint16quint32 のような Qt の整数型にキャストするのが常に最善です。こうすることで、アプリケーションがどのようなプラットフォームやアーキテクチャで動作していても、読み書きの整数のサイズを正確に把握することができます。

Qt における JSON サポートQt における CBOR サポートも参照してください

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