Hi, I have created a custom qml component by subclassing QDeclarativeItem and calling qmlRegisterType. This component pulls data from a database and attempt to create children that are defined in a .qml file. To do that, I need to somehow retrieve the engine that created my component, so I call instantiate a QDeclarativeComponent to create the children. I tried to subclass the componentComplete function and call QDeclarativeEngine.contextForObject(self).engine() to get the engine instance. The problem is that I then get "C++ instance is already deleted" errors whenever I try to call any of this object methods. Also, when I print the id() of engine I retrieved in componentComplete and the engine of the QDeclarativeView I used to load my qml file, I get different ids. So I think maybe pyside create two python objects for the same QDeclarativeEngine instance, wich would explain the weird C++ instance deleted errors. _______________________________________________ PySide mailing list [email protected] http://lists.pyside.org/listinfo/pyside
