Re: [SailfishDevel] Persistently storing a ListModel

2016-11-04 Thread Andrey Kozhevnikov
: 04.11.2016 22:00:19 Тема: Re: [SailfishDevel] Persistently storing a ListModel Thanks a lot! So I'm trying to store a pointer to ListModel and ConfigurationValue drops this silently because it's an invalid value, doesn't it? What is the standard way in Sailfish to access DConf fro

Re: [SailfishDevel] Persistently storing a ListModel

2016-11-04 Thread Marcin Mielniczuk
Thanks a lot! So I'm trying to store a pointer to ListModel and ConfigurationValue drops this silently because it's an invalid value, doesn't it? What is the standard way in Sailfish to access DConf from C++? I think about reimplementing the model as a subclass of QAbstractListModel anyway. Marc

Re: [SailfishDevel] Persistently storing a ListModel

2016-11-01 Thread Andrey Kozhevnikov
you storing pointer to model, not model contents :) to store model data you should recursively convert model data to array, and vise versa. -- Исходное сообщение -- От: "Marcin Mielniczuk" Кому: "Sailfish OS Developers" Отправлено: 01.11.2016 22:32:57 Тема: [SailfishDevel] Persistentl