09-03-2012 02:55 PM - edited 09-03-2012 02:56 PM
I'm wondering if anyone was able to create a C++ data model for a Cascades ListView using the code at the bottom of this page:
Was anyone able to get it working?
It seems I'm unable to get this line of code working correctly:
GroupDataModel *pModel = root->findChild<GroupDataModel*>("groupDataModel")
And in the qml code this line is listed as unknown property objectName: (but the qml gets still loaded)
As soon as I try to add a Item to the Model the qml file fails to load.
In comparsion this (more simple) example works fine for me:
It works without GroupDataModel placeholder in the qml file.
09-04-2012 01:00 AM