Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.12.1
-
-
bcbc3c9cec1f7d7bb8c9d5f5ea94eb5c81ec2853 (qt/qtdeclarative/5.13)
Description
I created a map by writing this code
QQmlPropertyMap mainPropertyMap; QQmlPropertyMap nestedPropertyMap; mainPropertyMap.insert("fruits", QVariant::fromValue(&nestedPropertyMap)); nestedPropertyMap.insert("apples", 10); qDebug() << QQmlProperty::read(&mainPropertyMap, "fruits.apples", ctx);
I expected 10 in debug output, but i got QVariant(Invalid).
Also, i cannot use property "fruits.apples" in QML Type Binding