Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
datastreamformat.qdoc
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
3
4/*!
5 \page datastreamformat.html
6 \title Serializing Qt Data Types
7 \brief List of data types that can be serialized by QDataStream.
8
9 The \l QDataStream class allows you to serialize the Qt data types
10 listed in this section.
11
12 It is always best to cast integers to a Qt integer type, such as
13 \l{qint16} or \l{quint32}, when reading and writing. This ensures that
14 you always know exactly what size integers you are reading and
15 writing, no matter what the underlying platform and architecture
16 the application happens to be running on.
17
18 \list
19 \li bool
20 \li \l{qint8}
21 \li \l{qint16}
22 \li \l{qint32}
23 \li \l{qint64}
24 \li \l{quint8}
25 \li \l{quint16}
26 \li \l{quint32}
27 \li \l{quint64}
28 \li \c float
29 \li \c double
30 \li \c {const char *}
31 \li QBitArray
32 \li QBrush
33 \li QByteArray
34 \li QColor
35 \li QCursor
36 \li QDate
37 \li QDateTime
38 \li QEasingCurve
39 \li QFont
40 \li QGenericMatrix
41 \li QHash<Key, T>
42 \li QIcon
43 \li QImage
44 \li QKeySequence
45 \li QList<T>
46 \li QMap<Key, T>
47 \li QMargins
48 \li QMatrix4x4
49 \li QPair<T1, T2>
50 \li QPalette
51 \li QPen
52 \li QPicture
53 \li QPixmap
54 \li QPoint
55 \li QQuaternion
56 \li QRect
57 \li QRegularExpression
58 \li QRegion
59 \li QSize
60 \li QString
61 \li QTime
62 \li QTransform
63 \li QUrl
64 \li QVariant
65 \li QVector2D
66 \li QVector3D
67 \li QVector4D
68 \endlist
69
70 \sa {JSON Support in Qt}, {CBOR Support in Qt}
71
72*/