[PyQt] Is deleteLater() necessary in PyQt/PySide?
David Boddie
davidb at met.no
Mon Nov 25 10:48:02 GMT 2013
On Sun Nov 24 03:22:03 GMT 2013, iMath wrote:
> Since there is already a Garbage Collector in Python, is deleteLater() necessary in PyQt/PySide?
Yes, because Python does not own all the objects used by Qt, so an object
may go out of scope in Python, but you still want to tell Qt to delete it
when it is no longer needed.
Take a look at the PyQt examples to see the situations where it is used.
David
More information about the PyQt
mailing list