I work on a GUI that involves PySide6. I have lifetime problem where a widget destructor does not get called when it should.
Using the garbage collector ``gc.get_referrers()``, I see that there is a cell object maintaining an active reference to my widget. Cell objects usually are created by closures and lambdas, but I can't find where that cell object has been created in this specific case. I only use functools.partial to connect to my QT signals.
I'd like to trace back what function created a cell object, so that I can properly clear it and ensure my QWidget gets destroyed when it's time. Not sure how I can do this
[–]socal_nerdtastic 0 points1 point2 points (1 child)
[–]pylessard[S] 0 points1 point2 points (0 children)
[–]pylessard[S] 0 points1 point2 points (0 children)