Xml file to qml dynamic list
-
i have a xml file with a lot of child nodes. and i want to parse it to qml list. But i don't want that all the data will be shown.
i want it to be open when the user press on it.
does anyone know how to do this, using qt/qml? -
"XmlListModel":http://doc.qt.nokia.com/4.7-snapshot/qml-xmllistmodel.html should help you.
[quote author="goli" date="1310639989"]
i wan't it to be open when the user press on it.
[/quote]What do you mean when you said you don't want it to be open when the user press on it???
-
sorry. i need it to be open when the user click on the element to show the children nodes
it need to be shown as a tree model(but to load the data from the XML file only when the user ask for it)