Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qjsonvalue.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:critical reason:data-parser
4
5#ifndef QJSONVALUE_H
6#define QJSONVALUE_H
7
8#include <QtCore/qcborvalue.h>
9#include <QtCore/qcompare.h>
10#include <QtCore/qglobal.h>
11#if (QT_VERSION < QT_VERSION_CHECK(7, 0, 0)) && !defined(QT_BOOTSTRAPPED)
12#include <QtCore/qjsondocument.h>
13#endif
14#include <QtCore/qjsonparseerror.h>
15#include <QtCore/qstring.h>
16#include <QtCore/qshareddata.h>
17
19
20class QVariant;
21class QJsonArray;
22class QJsonObject;
24
25namespace QJsonPrivate {
26class Value;
27}
28
29class Q_CORE_EXPORT QJsonValue
30{
31public:
32 enum Type {
33 Null = 0x0,
34 Bool = 0x1,
35 Double = 0x2,
36 String = 0x3,
37 Array = 0x4,
38 Object = 0x5,
39 Undefined = 0x80
40 };
41
42#if (QT_VERSION < QT_VERSION_CHECK(7, 0, 0)) && !defined(QT_BOOTSTRAPPED)
43 using JsonFormat = QJsonDocument::JsonFormat;
44#else
45 enum class JsonFormat {
46 Indented,
47 Compact,
48 };
49#endif
50
51 QJsonValue(Type = Null);
52 QJsonValue(bool b);
53 QJsonValue(double n);
54 QJsonValue(int n);
55 QJsonValue(qint64 v);
56 QJsonValue(const QString &s);
57 QJsonValue(QLatin1StringView s);
58#ifndef QT_NO_CAST_FROM_ASCII
59 QT_ASCII_CAST_WARN inline QJsonValue(const char *s)
60 : QJsonValue(QString::fromUtf8(s)) {}
61#endif
62 QJsonValue(const QJsonArray &a);
63 QJsonValue(QJsonArray &&a) noexcept;
64 QJsonValue(const QJsonObject &o);
65 QJsonValue(QJsonObject &&o) noexcept;
66
67 ~QJsonValue();
68
69 QJsonValue(const QJsonValue &other) noexcept;
70 QJsonValue &operator =(const QJsonValue &other) noexcept;
71
72 QJsonValue(QJsonValue &&other) noexcept;
73
74 QJsonValue &operator =(QJsonValue &&other) noexcept
75 {
76 swap(other);
77 return *this;
78 }
79
80 void swap(QJsonValue &other) noexcept;
81
82 static QJsonValue fromVariant(const QVariant &variant);
83 QVariant toVariant() const;
84
85 static QJsonValue fromJson(QByteArrayView json, QJsonParseError *error = nullptr);
86
87 QByteArray toJson(JsonFormat format = JsonFormat::Indented) const;
88
89 Type type() const;
90 inline bool isNull() const { return type() == Null; }
91 inline bool isBool() const { return type() == Bool; }
92 inline bool isDouble() const { return type() == Double; }
93 inline bool isString() const { return type() == String; }
94 inline bool isArray() const { return type() == Array; }
95 inline bool isObject() const { return type() == Object; }
96 inline bool isUndefined() const { return type() == Undefined; }
97
98 bool toBool(bool defaultValue = false) const;
99 int toInt(int defaultValue = 0) const;
100 qint64 toInteger(qint64 defaultValue = 0) const;
101 double toDouble(double defaultValue = 0) const;
102 QString toString() const;
103 QString toString(const QString &defaultValue) const;
104 QAnyStringView toStringView(QAnyStringView defaultValue = {}) const;
105 QJsonArray toArray() const;
106 QJsonArray toArray(const QJsonArray &defaultValue) const;
107 QJsonObject toObject() const;
108 QJsonObject toObject(const QJsonObject &defaultValue) const;
109
110 const QJsonValue operator[](const QString &key) const;
111 const QJsonValue operator[](QStringView key) const;
112 const QJsonValue operator[](QLatin1StringView key) const;
113 const QJsonValue operator[](qsizetype i) const;
114
115#if QT_CORE_REMOVED_SINCE(6, 8)
116 bool operator==(const QJsonValue &other) const;
117 bool operator!=(const QJsonValue &other) const;
118#endif
119
120private:
121 friend Q_CORE_EXPORT bool comparesEqual(const QJsonValue &lhs,
122 const QJsonValue &rhs);
123 Q_DECLARE_EQUALITY_COMPARABLE_NON_NOEXCEPT(QJsonValue)
124
125 // avoid implicit conversions from char * to bool
126 QJsonValue(const void *) = delete;
127 friend class QJsonPrivate::Value;
128 friend class QJsonArray;
129 friend class QJsonObject;
130 friend class QCborValue;
131 friend Q_CORE_EXPORT QDebug operator<<(QDebug, const QJsonValue &);
132 friend Q_CORE_EXPORT QDataStream &operator<<(QDataStream &, const QJsonValue &);
133
134 QCborValue value;
135
136 // Assert binary compatibility with pre-5.15 QJsonValue
137 static_assert(sizeof(QExplicitlySharedDataPointer<QCborContainerPrivate>) == sizeof(void *));
138 static_assert(sizeof(QCborValue::Type) == sizeof(QJsonValue::Type));
139};
140
142
144{
145public:
148 inline operator QJsonValue() const { return concrete(*this); }
149
150 Q_CORE_EXPORT QVariant toVariant() const;
151 QJsonValue::Type type() const { return concreteType(*this); }
152 bool isNull() const { return type() == QJsonValue::Null; }
153 bool isBool() const { return type() == QJsonValue::Bool; }
154 bool isDouble() const { return type() == QJsonValue::Double; }
155 bool isString() const { return type() == QJsonValue::String; }
156 bool isArray() const { return type() == QJsonValue::Array; }
157 bool isObject() const { return type() == QJsonValue::Object; }
158 bool isUndefined() const { return type() == QJsonValue::Undefined; }
159
160 bool toBool(bool defaultValue = false) const
161 { return concreteBool(*this, defaultValue); }
162 int toInt(int defaultValue = 0) const
163 { return int(concreteInt(*this, defaultValue, true)); }
164 qint64 toInteger(qint64 defaultValue = 0) const
165 { return concreteInt(*this, defaultValue, false); }
166 double toDouble(double defaultValue = 0) const
167 { return concreteDouble(*this, defaultValue); }
168 QString toString(const QString &defaultValue = {}) const
169 { return concreteString(*this, defaultValue); }
170 QAnyStringView toStringView(QAnyStringView defaultValue = {}) const
171 { return concreteStringView(*this, defaultValue); }
172 Q_CORE_EXPORT QJsonArray toArray() const;
173 Q_CORE_EXPORT QJsonObject toObject() const;
174
175 const QJsonValue operator[](QStringView key) const { return concrete(*this)[key]; }
176 const QJsonValue operator[](QLatin1StringView key) const { return concrete(*this)[key]; }
177 const QJsonValue operator[](qsizetype i) const { return concrete(*this)[i]; }
178
179protected:
180 friend bool comparesEqual(const QJsonValueConstRef &lhs,
181 const QJsonValueConstRef &rhs)
182 {
183 return comparesEqual(concrete(lhs), concrete(rhs));
184 }
185 friend bool comparesEqual(const QJsonValueConstRef &lhs,
186 const QJsonValue &rhs)
187 {
188 return comparesEqual(concrete(lhs), rhs);
189 }
192
195 Q_CORE_EXPORT static bool
196 Q_DECL_PURE_FUNCTION concreteBool(QJsonValueConstRef self, bool defaultValue) noexcept;
197 Q_CORE_EXPORT static qint64
199 Q_CORE_EXPORT static double
200 Q_DECL_PURE_FUNCTION concreteDouble(QJsonValueConstRef self, double defaultValue) noexcept;
201 Q_CORE_EXPORT static QString concreteString(QJsonValueConstRef self, const QString &defaultValue);
202 Q_CORE_EXPORT static QAnyStringView concreteStringView(QJsonValueConstRef self, QAnyStringView defaultValue);
203 Q_CORE_EXPORT static QJsonValue concrete(QJsonValueConstRef self) noexcept;
204
205 // for iterators
206 Q_CORE_EXPORT static QString objectKey(QJsonValueConstRef self);
207 QString objectKey() const { return objectKey(*this); }
208
209 Q_CORE_EXPORT static QAnyStringView objectKeyView(QJsonValueConstRef self);
210 QAnyStringView objectKeyView() const { return objectKeyView(*this); }
211
212#if QT_VERSION < QT_VERSION_CHECK(7, 0, 0) && !defined(QT_BOOTSTRAPPED)
214 : a(array), is_object(false), index(static_cast<quint64>(idx)) {}
216 : o(object), is_object(true), index(static_cast<quint64>(idx)) {}
217
219 {
221 if (is_object)
222 o = other.o;
223 else
224 a = other.a;
225 index = other.index;
226 }
227
228 union {
229 QJsonArray *a;
230 QJsonObject *o;
231 void *d;
232 };
233 quint64 is_object : 1;
234 quint64 index : 63;
235#else
236 constexpr QJsonValueConstRef(QCborContainerPrivate *d, size_t index, bool is_object)
238 {}
239
240 // implemented in qjsonarray.h & qjsonobject.h, to get their d
241 QJsonValueConstRef(QJsonArray *array, qsizetype idx);
242 QJsonValueConstRef(QJsonObject *object, qsizetype idx);
243
245 {
246 d = other.d;
247 index = other.index;
248 }
249
253#endif
254
255 friend class QJsonArray;
256 friend class QJsonObject;
257 friend class QJsonPrivate::Value;
258};
259
260QT_WARNING_PUSH
261QT6_ONLY(QT_WARNING_DISABLE_MSVC(4275)) // non dll-interface class 'QJsonValueConstRef' used as base for dll-interface class 'QJsonValueRef'
262class QT6_ONLY(Q_CORE_EXPORT) QJsonValueRef : public QJsonValueConstRef
263{
264public:
265 QJsonValueRef(const QJsonValueRef &) = default;
266 QT7_ONLY(Q_CORE_EXPORT) QJsonValueRef &operator = (const QJsonValue &val);
267 QT7_ONLY(Q_CORE_EXPORT) QJsonValueRef &operator = (const QJsonValueRef &val);
268
269#if QT_VERSION < QT_VERSION_CHECK(7, 0, 0) && !defined(QT_BOOTSTRAPPED)
270 // retained for binary compatibility (due to the Q_CORE_EXPORT) because at
271 // least one compiler emits and exports all inlines in an exported class
272
273 QJsonValueRef(QJsonArray *array, qsizetype idx)
274 : QJsonValueConstRef(array, idx) {}
275 QJsonValueRef(QJsonObject *object, qsizetype idx)
276 : QJsonValueConstRef(object, idx) {}
277
278 operator QJsonValue() const { return toValue(); }
279
280 QVariant toVariant() const;
281 inline QJsonValue::Type type() const { return QJsonValueConstRef::type(); }
282 inline bool isNull() const { return type() == QJsonValue::Null; }
283 inline bool isBool() const { return type() == QJsonValue::Bool; }
284 inline bool isDouble() const { return type() == QJsonValue::Double; }
285 inline bool isString() const { return type() == QJsonValue::String; }
286 inline bool isArray() const { return type() == QJsonValue::Array; }
287 inline bool isObject() const { return type() == QJsonValue::Object; }
288 inline bool isUndefined() const { return type() == QJsonValue::Undefined; }
289
290 inline bool toBool(bool defaultValue = false) const { return QJsonValueConstRef::toBool(defaultValue); }
291 inline int toInt(int defaultValue = 0) const { return QJsonValueConstRef::toInt(defaultValue); }
292 inline qint64 toInteger(qint64 defaultValue = 0) const { return QJsonValueConstRef::toInteger(defaultValue); }
293 inline double toDouble(double defaultValue = 0) const { return QJsonValueConstRef::toDouble(defaultValue); }
294 inline QString toString(const QString &defaultValue = {}) const { return QJsonValueConstRef::toString(defaultValue); }
295 QAnyStringView toStringView(QAnyStringView defaultValue = {}) const
296 { return QJsonValueConstRef::toStringView(defaultValue); }
297 QJsonArray toArray() const;
298 QJsonObject toObject() const;
299
300 const QJsonValue operator[](QStringView key) const { return QJsonValueConstRef::operator[](key); }
301 const QJsonValue operator[](QLatin1StringView key) const { return QJsonValueConstRef::operator[](key); }
302 const QJsonValue operator[](qsizetype i) const { return QJsonValueConstRef::operator[](i); }
303
304#if QT_CORE_REMOVED_SINCE(6, 8)
305 inline bool operator==(const QJsonValue &other) const { return comparesEqual(*this, other); }
306 inline bool operator!=(const QJsonValue &other) const { return !comparesEqual(*this, other); }
307#endif
308
309private:
310 friend bool comparesEqual(const QJsonValueRef &lhs, const QJsonValueRef &rhs)
311 {
312 return comparesEqual(QJsonValue(lhs), QJsonValue(rhs));
313 }
314 friend bool comparesEqual(const QJsonValueRef &lhs, const QJsonValueConstRef &rhs)
315 {
316 return comparesEqual(QJsonValue(lhs), QJsonValue(rhs));
317 }
318 Q_DECLARE_EQUALITY_COMPARABLE_NON_NOEXCEPT(QJsonValueRef)
319 Q_DECLARE_EQUALITY_COMPARABLE_NON_NOEXCEPT(QJsonValueRef, QJsonValueConstRef)
320
321 QJsonValue toValue() const;
322#else
323 using QJsonValueConstRef::operator[];
324 Q_CORE_EXPORT QJsonValueRef operator[](QAnyStringView key);
325 Q_CORE_EXPORT QJsonValueRef operator[](qsizetype i);
326
327private:
328 using QJsonValueConstRef::QJsonValueConstRef;
329#endif // < Qt 7
330
331 QT7_ONLY(Q_CORE_EXPORT) void detach();
332 friend class QJsonArray;
333 friend class QJsonObject;
334};
336
337inline QJsonValue QCborValueConstRef::toJsonValue() const
338{
339 return concrete().toJsonValue();
340}
341
342Q_CORE_EXPORT size_t qHash(const QJsonValue &value, size_t seed = 0);
343
344#if !defined(QT_NO_DEBUG_STREAM)
345Q_CORE_EXPORT QDebug operator<<(QDebug, const QJsonValue &);
346#endif
347
348#ifndef QT_NO_DATASTREAM
349Q_CORE_EXPORT QDataStream &operator<<(QDataStream &, const QJsonValue &);
350Q_CORE_EXPORT QDataStream &operator>>(QDataStream &, QJsonValue &);
351#endif
352
353QT_END_NAMESPACE
354
355#endif // QJSONVALUE_H
The QAssociativeIterable class is an iterable interface for an associative container in a QVariant.
\inmodule QtCore\reentrant
Definition qcborarray.h:21
\inmodule QtCore\reentrant
Definition qcbormap.h:35
bool isBool() const
Definition qcborvalue.h:321
QCborArray toArray(const QCborArray &a) const
Definition qcborarray.h:384
QCborMap toMap(const QCborMap &m) const
Definition qcbormap.h:495
QCborMap toMap() const
Definition qcbormap.h:490
QVariant toVariant() const
Definition qcborvalue.h:385
bool isInteger() const
Definition qcborvalue.h:313
bool isDateTime() const
Definition qcborvalue.h:325
bool isDouble() const
Definition qcborvalue.h:324
bool isString() const
Definition qcborvalue.h:315
QCborValueConstRef & operator=(const QCborValueConstRef &)=delete
bool isUrl() const
Definition qcborvalue.h:326
bool isNull() const
Definition qcborvalue.h:322
QCborArray toArray() const
Definition qcborarray.h:379
bool isContainer() const
Definition qcborvalue.h:330
bool toBool(bool defaultValue=false) const
Definition qcborvalue.h:346
QCborValue taggedValue(const QCborValue &defaultValue=QCborValue()) const
Definition qcborvalue.h:341
bool isByteArray() const
Definition qcborvalue.h:314
QCborSimpleType toSimpleType(QCborSimpleType defaultValue=QCborSimpleType::Undefined) const
Definition qcborvalue.h:334
bool isMap() const
Definition qcborvalue.h:317
bool isSimpleType() const
Definition qcborvalue.h:331
bool isRegularExpression() const
Definition qcborvalue.h:327
bool isUndefined() const
Definition qcborvalue.h:323
QCborValue::Type type() const
Definition qcborvalue.h:312
bool isInvalid() const
Definition qcborvalue.h:329
QCborValueConstRef(const QCborValueConstRef &)=default
bool isUuid() const
Definition qcborvalue.h:328
QCborTag tag(QCborTag defaultValue=QCborTag(-1)) const
Definition qcborvalue.h:339
constexpr QCborValueConstRef()
Definition qcborvalue.h:452
QByteArray toByteArray(const QByteArray &defaultValue={}) const
Definition qcborvalue.h:351
qint64 toInteger(qint64 defaultValue=0) const
Definition qcborvalue.h:344
bool isSimpleType(QCborSimpleType st) const
Definition qcborvalue.h:332
bool isTrue() const
Definition qcborvalue.h:320
QUuid toUuid(const QUuid &defaultValue={}) const
Definition qcborvalue.h:368
QCborContainerPrivate * d
Definition qcborvalue.h:456
bool isFalse() const
Definition qcborvalue.h:319
QAnyStringView toStringView(QAnyStringView defaultValue={}) const
Definition qcborvalue.h:355
friend bool comparesEqual(const QCborValueConstRef &lhs, const QCborValueConstRef &rhs) noexcept
Definition qcborvalue.h:409
bool isTag() const
Definition qcborvalue.h:318
friend bool comparesEqual(const QCborValueConstRef &lhs, const QCborValue &rhs) noexcept
Definition qcborvalue.h:425
QString toDiagnosticNotation(QCborValue::DiagnosticNotationOptions opt=QCborValue::Compact) const
Definition qcborvalue.h:395
bool isArray() const
Definition qcborvalue.h:316
int compare(const QCborValue &other) const
Definition qcborvalue.h:382
friend Qt::strong_ordering compareThreeWay(const QCborValueConstRef &lhs, const QCborValue &rhs) noexcept
Definition qcborvalue.h:430
operator QCborValue() const
Definition qcborvalue.h:310
friend Qt::strong_ordering compareThreeWay(const QCborValueConstRef &lhs, const QCborValueConstRef &rhs) noexcept
Definition qcborvalue.h:414
constexpr QCborValueConstRef(QCborContainerPrivate *dd, qsizetype ii)
Definition qcborvalue.h:453
QCborValue concrete() const noexcept
Definition qcborvalue.h:404
QString toString(const QString &defaultValue={}) const
Definition qcborvalue.h:353
QUrl toUrl(const QUrl &defaultValue={}) const
Definition qcborvalue.h:362
QJsonValue toJsonValue() const
double toDouble(double defaultValue=0) const
Definition qcborvalue.h:348
\inmodule QtCore\reentrant
Definition qcborvalue.h:48
\inmodule QtCore\reentrant
Definition qdatastream.h:50
\inmodule QtCore
Definition qhash.h:837
\inmodule QtCore\reentrant
Definition qjsonarray.h:19
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
Definition qjsonobject.h:34
friend bool comparesEqual(const QJsonValueConstRef &lhs, const QJsonValue &rhs)
Definition qjsonvalue.h:185
constexpr QJsonValueConstRef(QCborContainerPrivate *d, size_t index, bool is_object)
Definition qjsonvalue.h:236
friend bool comparesEqual(const QJsonValueConstRef &lhs, const QJsonValueConstRef &rhs)
Definition qjsonvalue.h:180
bool isBool() const
Definition qjsonvalue.h:153
operator QJsonValue() const
Definition qjsonvalue.h:148
bool isArray() const
Definition qjsonvalue.h:156
bool isDouble() const
Definition qjsonvalue.h:154
QAnyStringView objectKeyView() const
Definition qjsonvalue.h:210
void rebind(QJsonValueConstRef other)
Definition qjsonvalue.h:244
bool isString() const
Definition qjsonvalue.h:155
bool isObject() const
Definition qjsonvalue.h:157
QString objectKey() const
Definition qjsonvalue.h:207
QAnyStringView toStringView(QAnyStringView defaultValue={}) const
Definition qjsonvalue.h:170
QJsonValueConstRef(const QJsonValueConstRef &)=default
qint64 toInteger(qint64 defaultValue=0) const
Definition qjsonvalue.h:164
bool toBool(bool defaultValue=false) const
Definition qjsonvalue.h:160
QJsonValueConstRef & operator=(const QJsonValueConstRef &)=delete
QString toString(const QString &defaultValue={}) const
Definition qjsonvalue.h:168
QJsonValue::Type type() const
Definition qjsonvalue.h:151
QJsonValueConstRef(QJsonArray *array, qsizetype idx)
Definition qjsonarray.h:322
QCborContainerPrivate * d
Definition qjsonvalue.h:250
bool isNull() const
Definition qjsonvalue.h:152
QJsonValueConstRef(QJsonObject *object, qsizetype idx)
double toDouble(double defaultValue=0) const
Definition qjsonvalue.h:166
int toInt(int defaultValue=0) const
Definition qjsonvalue.h:162
const QJsonValue operator[](QStringView key) const
Definition qjsonvalue.h:175
bool isUndefined() const
Definition qjsonvalue.h:158
\inmodule QtCore\reentrant
Definition qjsonvalue.h:30
Definition qlist.h:80
void remove(int from, int to)
bool insertIfNotContains(Key k, const T &f)
bool contains(Key k) const
const T * function(Key k) const
\inmodule QtCore\reentrant
Definition qpoint.h:231
\inmodule QtCore\reentrant
Definition qpoint.h:29
The QSequentialIterable class is an iterable interface for a container in a QVariant.
LegacyRegisterOp legacyRegisterOp
Definition qmetatype.h:312
\keyword 16-bit Floating Point Support\inmodule QtCore \inheaderfile QFloat16
Definition qfloat16.h:48
QMutableListIterator< QByteArray > QMutableByteArrayListIterator
Q_DECLARE_TYPEINFO(QByteArrayView, Q_PRIMITIVE_TYPE)
QCborSimpleType
Definition qcborcommon.h:29
Q_CORE_EXPORT QDebug operator<<(QDebug debug, QDir::Filters filters)
Definition qdir.cpp:2568
QList< QVariant > QVariantList
Definition qjsonarray.h:16
#define qCWarning(category,...)
#define Q_STATIC_LOGGING_CATEGORY(name,...)
#define CONVERT_CBOR_AND_JSON(To)
#define NS(x)
Definition qmetatype.cpp:70
#define QMETATYPE_CONVERTER_ASSIGN_QCHAR(From)
#define QMETATYPE_CONVERTER_ASSIGN_DOUBLE(To, From)
#define INTEGRAL_CONVERTER(To)
static bool tryConvertBuiltinTypes(const void *from, int fromTypeId, void *to, int toTypeId)
#define QMETATYPE_CONVERTER_ASSIGN_NUMBER(To, From)
static bool qIntegerConversionFromFPHelper(From from, To *to)
#define FLOAT_CONVERTER(To)
#define QT_FOR_EACH_STATIC_CORE_POINTER(F)
Definition qmetatype.h:137
#define QT_FOR_EACH_STATIC_PRIMITIVE_TYPE(F)
Definition qmetatype.h:70
#define QT_FOR_EACH_STATIC_PRIMITIVE_NON_VOID_TYPE(F)
Definition qmetatype.h:50
#define QT_FOR_EACH_STATIC_CORE_TEMPLATE(F)
Definition qmetatype.h:151
#define QT_FOR_EACH_STATIC_PRIMITIVE_POINTER(F)
Definition qmetatype.h:74
#define QT_IMPL_METATYPE_EXTERN_TAGGED(TYPE, TAG)
Definition qmetatype.h:1365
#define QT_FOR_EACH_STATIC_CORE_CLASS(F)
Definition qmetatype.h:105
#define QT_FOR_EACH_STATIC_ALIAS_TYPE(F)
Definition qmetatype.h:193
#define QT_FOR_EACH_STATIC_TYPE(F)
Definition qmetatype.h:223
#define QMETATYPE_CONVERTER(To, From, assign_and_return)
Definition qmetatype_p.h:23
#define QMETATYPE_CONVERTER_ASSIGN(To, From)
Definition qmetatype_p.h:34
#define QStringLiteral(str)
Definition qstring.h:1826
\inmodule QtCore\reentrant
Definition qcborvalue.h:38
QString errorString() const
\variable QCborParserError::offset
Definition qcborvalue.h:42
QCborError error
Definition qcborvalue.h:40
QListSpecialMethods & operator=(const QListSpecialMethods &)=default
QListSpecialMethods(QListSpecialMethods &&)=default
QListSpecialMethods & operator=(QListSpecialMethods &&)=default
QListSpecialMethods(const QListSpecialMethods &)=default
QByteArray join(QByteArrayView sep={}) const
static T value(const Iterator &it)
Definition qcbormap.h:27
static T value(Iterator &it)
Definition qcbormap.h:28
static QCborValueConstRef key(Iterator &it)
Definition qcbormap.h:26
static QCborValueConstRef key(const Iterator &it)
Definition qcbormap.h:25
static QAnyStringView key(Iterator &it)
Definition qjsonobject.h:26
static T value(const Iterator &it)
Definition qjsonobject.h:27
static QAnyStringView key(const Iterator &it)
Definition qjsonobject.h:25
static T value(Iterator &it)
Definition qjsonobject.h:28