<div style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;font-weight:normal;line-height:normal;color:rgb(34,34,34);text-transform:none;font-size:12.7273px;white-space:normal;font-family:arial,sans-serif;word-spacing:0px">

All,<br><br>I'm running into issues where Python objects (subclasses of QObject and other QT classes) that are exposed to QML (through a QDeclarativeView) will often cause a segfault when they are accessed by QML. I think this is because the Python objects are being garbage collected on the Python side. (I assume this is because PySide doesn't do reference counting on objects used by QML. Is this true?)</div>

<div style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;font-weight:normal;line-height:normal;color:rgb(34,34,34);text-transform:none;font-size:12.7273px;white-space:normal;font-family:arial,sans-serif;word-spacing:0px">

<br>I "fixed" this (more like worked around it temporary) by creating a global object cache that never deallocates any of the objects in question. As expected, this is unacceptable as it creates memory bloat as the program execution time increases.</div>

<div style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;font-weight:normal;line-height:normal;color:rgb(34,34,34);text-transform:none;font-size:12.7273px;white-space:normal;font-family:arial,sans-serif;word-spacing:0px">

<br></div><div style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;font-weight:normal;line-height:normal;color:rgb(34,34,34);text-transform:none;font-size:12.7273px;white-space:normal;font-family:arial,sans-serif;word-spacing:0px">

What is the recommended way of using our objects in QML and not having to store all of them permanently?<br><br>Thanks for feed back. I'm enjoying PySIde and looking to get more into it!<br><br><br><br>Seth<br></div>