Hi,
After sellecting an item from listview, I will push another qml page. But I need to know which item sellected on the new qml page. I search and could not find any working code.
Any idea.
Best Regards
Hi,
After sellecting an item from listview, I will push another qml page. But I need to know which item sellected on the new qml page. I search and could not find any working code.
Any idea.
Best Regards
if you are using a list model, then simply there is function get(index).
You pass the index property there and you will get the data object as reply.
Hi,
I am using listmodel and can not pass this id to new qml page. Any example? Also I need to retrieve title from model in the new qml page as well.
BR
why you need to pass the id just assign the model index or the value itself to that views or qml files property prior to pushing that ??
Hi,
I am quite new for qml. Where can I find some infos and examples about your mentioned idea?
BR
Hi,
I'm a new QML developer too, but I think you can use the "properties" parameter of the push method.
Create a property that will hold the selected item index in the page that will be pushed and specify this property value when you push.
Just take a look in the doc: http://doc.qt.nokia.com/qt-component...ml#push-method
Best Regards,
Rodrigo Borges