Hi, On Mon, Mar 7, 2022 at 11:20 AM Ulf Hermann <ulf.herm...@qt.io> wrote:
> QQmlPropertyMap::setValue(key, value) should trigger the change signal > of the property. > Do you possibly mean QQmlPropertyMap::updateValue, because I don't see a setValue method in the documentation. Either way it doesn't appear to work for me, which made me muse a bit. Is it possible that it doesn't update because my property is a gadget and the binding is through an implicit QString conversion? Additional piece of information that may be relevant is that the QObject which exposes the dynamic properties is a 'constant' property of another object (I don't want to allow it get set from QML), should this be a problem, I'd assumed not? Mind that "QVariant &operator[](const QString &key)" is broken in that > way. It cannot possibly notify if you change the value through the > reference it returns. > Noted (also confirmed by my experiments).
_______________________________________________ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest