register¶
Global registry to register that an Python Object should be scheduled for garbage collection, when a QObject is destroyed.
This is used to combine models and views, where the model should be garbage collected once it has no views any more. But as long as it has views, it should be kept alive.
- class camelot.view.register.Register[source]¶
The register that takes care of the dependencies. It monitors an object and when the monitored object is destroyed, its registered object is scheduled for collection.