05-14-2012 11:03 AM
Hi There,
I am trying to create a ListView like stamp sample,
However, all those QML files are within one folders
what I am trying to do is to create some various QML files, and some of these files are shared within other files.
for example: I snap the code from stampcollectorapp qml,
// Second level item see the component in StampItem.qml.
ListItemComponent {
type: "item"
StampItem {
}
}
The line at [StampItem] is looking another QML file,
If I define StampItem within other asset folder, How to write it, and thanks?
// Second level item see the component in StampItem.qml.
ListItemComponent {
type: "item"
myqmlpath???/StampItem {
}
}
Solved! Go to Solution.
05-14-2012 11:35 AM
I think you have to import them at the top of your qml, the sample quotes app has qml files in subfolders
see here:
https://github.com/blackberry/Cascades-Samples/blo
EditScreen is imported into main.qml, and EditScreen is in assets/EditScreen/EditScreen.qml
I'm not sure if the folder name being the same as the qml file name is a convention, so I would try to mess around and see what works.
05-14-2012 12:45 PM
Thanks you, That help a lot.