Serialización de Tipos de Datos Qt
La clase QDataStream permite serializar los tipos de datos Qt listados en esta sección.
Siempre es mejor convertir los enteros a un tipo entero de Qt, como qint16 o quint32, al leer y escribir. Esto asegura que siempre sepas exactamente de qué tamaño son los enteros que estás leyendo y escribiendo, sin importar la plataforma subyacente y la arquitectura en la que se esté ejecutando la aplicación.
- bool
- qint8
- qint16
- qint32
- qint64
- quint8
- quint16
- quint32
- quint64
floatdoubleconst char *- QBitArray
- QBrush
- QByteArray
- QCborArray
- QCborMap
- QCborValue
- QColor
- QColorSpace
- QCursor
- QDate
- QDateTime
- QEasingCurve
- QFont
- QGenericMatrix
- QHash<Clave, T>
- QHostAddress
- QIcon
- QImage
- QJsonArray
- QJsonDocument
- QJsonObject
- QJsonValue
- QKeySequence
- QLine
- QLineF
- QList<T>
- QListWidgetItem
- QLocale
- QMap<Clave, T>
- QMargins
- QMarginsF
- QMatrix4x4
- QModelIndex
- QModelIndexList
- QMultiHash<Clave
- QMultiMap<Clave
- 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
Véase también SoporteJSON en Qt y Soporte CBOR en 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.