Important: Please read the Qt Code of Conduct -

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){

    I got:
    TypeError: Property 'someFunction' of object [object Object] is not a function

    Anybody know how to declare a type??


Log in to reply