Serializing Qt Data TypesΒΆ
List of data types that can be serialized by QDataStream
.
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 *
QBrush
QColor
QColorSpace
QCursor
QFont
QGenericMatrix
QHash
<Key, T>QHostAddress
QIcon
QImage
QJsonObject
QKeySequence
QList
<T>QListWidgetItem
QMap
<Key, T>QMatrix4x4
QModelIndexList
QMultiHash
<Key
QMultiMap
<KeyQNetworkCacheMetaData
QNetworkCacheMetaData::AttributesMap
QPageRanges
QPainterPath
std::pair<T1, T2>
QPalette
QPen
QPicture
QPixmap
QPolygon
QPolygonF
QQuaternion
QRegion
QSet
QSizePolicy
QStandardItem
QString
QTableWidgetItem
QTextBlockFormat
QTextCharFormat
QTextFormat
QTextFrameFormat
QTextLength
QTextListFormat
QTextTableCellFormat
QTransform
QTreeWidgetItem
QTypeRevision
QVariant
QVector2D
QVector3D
QVector4D
See also