就业培训     下载中心     Wiki     联络 登录   注册

Log
  1. 首页
  2. Qt 6.7.2
  3. Qt Core
  4. 序列化 Qt 数据类型

序列化 Qt 数据类型

The QDataStream class allows you to serialize the Qt data types listed in this section.

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.

  • 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 <Key, 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 <Key
  • 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 and 在 Qt 中支持 CBOR .

版权所有  © 2014-2025 乐数软件    

工业和信息化部: 粤ICP备14079481号-1