[SailfishDevel] Sharing model between pages ("by reference")
Dirk Zimmermann
me+sailfishos at dirkz.com
Sun Feb 1 10:44:49 UTC 2015
On 01.02.2015 11:19, Andrey Kozhevnikov wrote:
> Why didn't you tried before asking? This is working in exactly same way
> as you described in your question.
I asked because in my case it didn't work. Otherwise there wouldn't have
been a reason to ask :)
> Below is template pages. MainPage declares testModel, FirstPage and
> SecondPage using same model as reference, assigned to listModel
> property. Everything works flawlessly.
Thanks for the feedback, there must be something else in my code that
lets the two models deviate (as in not referencing the same object anymore).
Dirk
More information about the Devel
mailing list