Hi,

The docs for QJsonObject::operator[] say [1]:

> The returned QJsonValue is QJsonValue::Undefined if the key does not exist. 

Yet:

==
QJsonValue var = responseVariables["IDontExist"];
var.isUndefined() -> false;
var.isNull() -> true;

qDebug() << var;
QJsonValue(null)
==

I use Qt 5.1.1.

Regards,

Wiebe Cazemier



[1] http://qt-project.org/doc/qt-5/qjsonobject.html#operator-5b-5d
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to