With this example [qt-project.org] I’ve managed to make a list property for my custom type. Now I want to process the list every time it is set from QML, how this is done?
I can think about QQmlParserStatus, but is only gives me ability to know all my object properties are set at instantiation time. What if my list somehow changes on event? Does it even able to change? Because if not, QQmlParserStatus looks sufficient.
An example of list processing can be seen somewhere here [qt.gitorious.org]. QtQuick Item does split drawable elements from resource ones. But overall code looks complicated and tricky, that is why I look for simple solutions like in example from which I started.
↧