dynamically create and bind datamodel and listview

I have searched through forums and examples but in all example listview/datamodel are bound from the starting of the app only .I need to create and bind it dynamically. Because my listview data will depend upon selection of previous form. Need to do it using qml.Can someone help me?

Re: dynamically create and bind datamodel and listview

Hi, I have gone through the examples. I have dynamically generated data,added to qvariantlist and then datamodel. Checked that data was inserted in datamodel(checked its size). But when I called it in qml using datamodel: its displaying blank.