Details
-
Bug
-
Resolution: Invalid
-
P2: Important
-
None
-
5.1.1, 5.3.0
-
None
Description
The Docs for QJsonObject in Qt 5 say:
The returned QJsonValue is QJsonValue::Undefined if the key does not exist.
However, when I do:
QJsonObject o;
QJsonValue foo = o["bar"];
qDebug() << foo;
I get:
QJsonValue(null)
And foo.isNull() == true and foo.isUndefined() == false
Tested with 5.1.1 and 5.3.
Attachments
For Gerrit Dashboard: QTBUG-39864 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
293122,3 | Doc: update QJsonObject::operator[] non-const to say it creates key | 5.15 | qt/qtbase | Status: MERGED | +2 | 0 |