02-06-2013 05:40 AM
Hi Guys,
I am trying make a simple list view.
It gives the following error.
XmlDataModel could not open the file "file:///apps/com.example.Kayako.testDev_mple_Kay
Please help.
02-06-2013 06:20 PM
check if your model.xml is in assets/qml folder in files system. I keep xml's in xml folder.
ListView {
dataModel: XmlDataModel {
source: "xml/model.xml"
}
}
02-08-2013 04:19 PM
How are you setting the dataModel? It looks like you have an extra "/" in your path:
"file:///apps/com.example.Kayako.testDev_mple_Kaya
It should be set in the form:
source: "models/stamps.xml"
Could you be setting it as:
source: "/models/stamps.xml"?
02-08-2013 05:15 PM
send me your ziped project and I'll correct it and send you back.