02-06-2013 06:17 PM
Yeah all the qmlRegisterType calls are called before loading main.qml. That's all good.
The device logs contains a lot of messages. All of them are in the INFO or NOTICE category. Whenever I press the refresh button, the folling warning pops up in the device logs:
TypeError: Result of expression 'movieListModel.reload' [undefined] is not a function.
So, this one I can understand, as the Q_INVOKABLE is ignored in some way.
02-06-2013 06:25 PM
it's looking for reload method in DataModel (base class) instead your object. Please see my previouse post to solve your issue. If you need complete solution email me.
02-06-2013 06:49 PM
Thanks for your patience. I think you're right about it trying to find a DataModel reload method instead of my own. I created a simple Q_Object and added it as an attachedObject and tried the same setup and the c++ method did get hit in this situation.
I think I'll just have to wrap the DataModel in a new Q_Object class and have the datamodel as a property of the new class.
Thanks for your help.
02-09-2013 03:16 PM
I managed to solve the problem without changing much to the original classes.
02-09-2013 03:39 PM