Qt 데이터 유형 직렬화하기
QDataStream 클래스를 사용하면 이 섹션에 나열된 Qt 데이터 유형을 직렬화할 수 있습니다.
정수를 읽고 쓸 때는 항상 qint16 또는 quint32 과 같은 Qt 정수형으로 캐스팅하는 것이 가장 좋습니다. 이렇게 하면 애플리케이션이 실행되는 기본 플랫폼과 아키텍처에 관계없이 항상 읽고 쓰는 정수의 크기를 정확히 알 수 있습니다.
- bool
- 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<Key, T>
- QMargins
- QMarginsF
- QMatrix4x4
- QModelIndex
- QModelIndexList
- QMultiHash<Key
- QMultiMap<키
- QNetworkCacheMetaData
- QNetworkCacheMetaData::AttributesMap
- QPageRanges
- QPainterPath
- std::pair<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.