Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

How to execute function from element of ListModel

$
0
0
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 function Anybody know how to declare a type?? Tomek

Viewing all articles
Browse latest Browse all 4972

Latest Images

Trending Articles



Latest Images