Re: [Interest] QML defining an object property

2021-06-02 Thread Alexander Dyagilev
Thanks. On 6/1/2021 10:52 AM, Pierre-Yves Siret wrote: Le lun. 31 mai 2021 à 19:59, Alexander Dyagilev > a écrit : Hello, Am I right that this is not possible in QML? readonlypropertyvarmainTbImg:{     up:"some string", up_check:"some

Re: [Interest] QML defining an object property

2021-06-01 Thread Pierre-Yves Siret
Le lun. 31 mai 2021 à 19:59, Alexander Dyagilev a écrit : > Hello, > > Am I right that this is not possible in QML? > > readonly property var mainTbImg: { > up: "some string", > up_check: "some another string" > } > The problem is that QML doesn't know how to parse it, it can't know

Re: [Interest] QML defining an object property

2021-05-31 Thread Jérôme Godbout
s://www.dimonoff.com/> dimonoff.com<https://www.dimonoff.com/> 1015 Avenue Wilfrid-Pelletier, Québec, QC G1W 0C4, 4e étage From: Interest on behalf of Jérôme Godbout Date: Monday, May 31, 2021 at 3:00 PM To: Alexander Dyagilev , interest@qt-project.org Subject: Re: [Interest] QML defining

Re: [Interest] QML defining an object property

2021-05-31 Thread Jérôme Godbout
This should be working (at least into 5.15.x). Binding value into the object should emit the changed normally. Take care if you want a binding to react to values changed inside the dictionary/object inside you property, you will need to emit the change on the property. Normally an easy way is