[Interest] QObject.destroyed() not working?!
Frank Rueter | OHUfx
frank at ohufx.com
Mon Mar 27 03:52:48 CEST 2017
Hi,
I'm pretty sure I'm misinterpreting how this should work so maybe you
guys can help:
I have a QObject which I would like to run a simple clean up job just
before it's destroyed.
I thought I could simply do this in it's constructor:
self.destroyed.connect(self.__cleanUp)
Then have self.__cleanUp() to the work.
However, a simple print statement inside self.__cleanUp() shows that
it's never run.
What am I missing?
Thanks,
frank
More information about the Interest
mailing list