Hello,
I am trying to extend a ListModel with some JavaScript functions which will be
handy for my app. I have an UrlArguments.qml like this:
ListModel {
function hasArgument(name) {
for (var i = 0; i < count(); i++) {
if (get(i).name == name)
return i;
}
return -1;
}
}
When I try to create a UrlArguments element like this:
EntryTitleListView {
urlArguments: UrlArguments {
ListElement {
name: "a"
value: "td"
}
}
}
I get "Cannot assign to non-existent default property" at the line beginning
with ListElement. What is the problem? Can't I encapsulate ListModel inside
another element?
Canol Gokel_______________________________________________
Qt-qml mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt-qml