Qt データ型のシリアライズ
QDataStream クラスでは、このセクションで挙げた Qt データ型をシリアライズすることができます。
読み書きの際には、整数をqint16 やquint32 のような Qt の整数型にキャストするのが常に最善です。こうすることで、アプリケーションがどのようなプラットフォームやアーキテクチャで動作していても、読み書きの整数のサイズを正確に把握することができます。
- ブール
- qint8
- qint16
- qint32
- qint64
- quint8
- quint16
- quint32
- quint64
float
double
const char *
- QBitArray
- QBrush
- QByteArray
- QCborArray
- QCborMap
- QCborValue
- QColor
- QColorSpace
- QCursor
- QDate
- QDateTime
- QEasingCurve
- QFont
- QGenericMatrix
- QHash<キー, T
- QHostAddress
- QIcon
- QImage
- QJsonArray
- QJsonDocument
- QJsonObject
- QJsonValue
- QKeySequence
- QLine
- QLineF
- QList<T>
- QListWidgetItem
- QLocale
- QMap<キー, T
- QMargins
- QMarginsF
- QMatrix4x4
- QModelIndex
- QModelIndexList
- QMultiHash<キー
- QMultiMap<キー
- QNetworkCacheMetaData
- QNetworkCacheMetaData::AttributesMap
- QPageRanges
- QPainterPath
- 標準::ペア<T1, T2
- QPalette
- QPen
- QPicture
- QPixmap
- QPoint
- QPointF
- QPolygon
- QPolygonF
- QQuaternion
- QRect
- QRectF
- QRegularExpression
- QRegion
- QSet
- QSize
- QSizeF
- QSizePolicy
- QStandardItem
- QString
- QTableWidgetItem
- QTextBlockFormat
- QTextCharFormat
- QTextFormat
- QTextFrameFormat
- QTextLength
- QTextListFormat
- QTextTableCellFormat
- QTimeZone
- QTime
- QTransform
- QTreeWidgetItem
- QTypeRevision
- QUrl
- QUuid
- QVariant
- QVector2D
- QVector3D
- QVector4D
- QVersionNumber
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.