Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
5.15.0
-
None
Description
a QVariantMap keypair that has value of QVariant is ignored when converting to QJsonDocument.
QVariantMap m{{"toto", QVariant{}}};
qDebug() << m; // m contains toto with the null QVariant
qDebug() << QJsonDocument::fromVariant(m); // this one is empty
I was trying to port from Qt 5.12 to 5.15 and that is a real bummer.
Is this behaviour change intended?
Attachments
Issue Links
- is replaced by
-
QTBUG-84739 Regression with dataloss
- Closed