Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.5.1
-
None
Description
Expanding from a QVariant via QVariant::value<QVariantMap>() and QVariant::toMap() should give the same or at least equivalent result.
But the first one seems to remove duplicate Keys.
QVariantMap map; map.insertMulti("Key", "Value1"); map.insertMulti("Key", "Value2"); QVariant variant = map; //fails: QCOMPARE(variant.value<QVariantMap>(), variant.toMap());