05-16-2013 04:57 AM
I'm trying to understand how to send data from XMLdatamodel into lower heirarchy QML files
In the Cascades QML example file main.qml the following lines are creating the RecipePage and setting its title to whatever is in chosenItem.title
var page = recipePage.createObject();
page.title = chosenItem.title;
But the recipePage doesn't have a "title" id? How does this work?
If there was an imageview in a container in the recipePage, could you use the following to change the imageSource?
page.<containerID>.<ImageviewID>.imageSource = chosenItem.image;