listmodel.append from pyqt



  • Hello, I'm trying to add elements in a ListModel element with it's method append from my main.py file, and I have the following error message:
    TypeError: unable to convert argument 0 of QAbstractListModel.append from 'Dict' to 'QQmlV4Function*'
    What can I do to pass my object as the listmodel.append argument?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.