How to execute function from element of ListModel
-
Hi,
does anybody know how to run function of object from ListModel?I got LisModel declared as:
ListModel {
id: boardModel
}But when I do something like:
@ for(var i=0;i<boardSize;++i){
if(listModel.get(i).frameID === selectedFrame){
continue;
}
listModel.get(i).someFunction()
}@I got:
TypeError: Property 'someFunction' of object [object Object] is not a functionAnybody know how to declare a type??
Tomek