<div dir="ltr"><div>I have a subclass of QObject with a list as a property. I'm trying to set the list property in QML but I'm getting <span style="background-color:rgb(247,247,247);color:rgb(51,51,51);font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:13.6px">TypeError: list element must be of </span><span class="gmail-pl-c1" style="font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:13.6px;box-sizing:border-box;color:rgb(0,134,179)">type</span><span style="background-color:rgb(247,247,247);color:rgb(51,51,51);font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:13.6px"> </span><span class="gmail-pl-s" style="font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:13.6px;box-sizing:border-box;color:rgb(24,54,145)"><span class="gmail-pl-pds" style="box-sizing:border-box">'</span>str<span class="gmail-pl-pds" style="box-sizing:border-box">'</span></span><span style="background-color:rgb(247,247,247);color:rgb(51,51,51);font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:13.6px">, not </span><span class="gmail-pl-s" style="font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:13.6px;box-sizing:border-box;color:rgb(24,54,145)"><span class="gmail-pl-pds" style="box-sizing:border-box">'</span>NoneType<span class="gmail-pl-pds" style="box-sizing:border-box">' </span></span>followed by a <span style="background-color:rgb(247,247,247);color:rgb(51,51,51);font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:13.6px">signal SIGABRT (Abort)</span></div><div><br></div><div>The docs talk about using setTarget() but I can't figure out how to use it. How do you specify the property.</div><div><br></div><div>Example code here:</div><a href="https://github.com/Siecje/pyqtProperty-list/tree/QQMLListProperty">https://github.com/Siecje/pyqtProperty-list/tree/QQMLListProperty</a><br><div><br></div><div><br></div></div>