I think the issue is that a closeEvent hides the widgets instead of
deleting them by default. But it seems that this behaviour can be changed.
>
> To make a widget delete itself when it’s closed, use the
> Qt::WA_DeleteOnClose widget attribute.

http://qt-project.org/forums/viewthread/7661

This might be the best solution, never tried it though.
As soon as a deletion has been scheduled (with deleteLater() or probably
Qt::WA_DeleteOnClose) and it happend, i guess the gc will do its job.
Anybody please correct me if i'm telling nonsense ;)

Cheers,
Timm

On Fri, Jan 23, 2015 at 10:16 PM, Marcus Ottosson <[email protected]>
wrote:

> When things are properly parented, is there really a need for clean-up?
> Wouldn't dialogs and timers get picked up and thrown out during garbage
> collection?
>
> --
> *Marcus Ottosson*
> [email protected]
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Python Programming for Autodesk Maya" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/CAFRtmODp%2Bn8OhkkGVjZOQ61CLJzxFh__R%3D-SMGxXcMKih6dxBA%40mail.gmail.com
> <https://groups.google.com/d/msgid/python_inside_maya/CAFRtmODp%2Bn8OhkkGVjZOQ61CLJzxFh__R%3D-SMGxXcMKih6dxBA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
*Timm Wagener*
*Technical Artist / 3D Generalist*

*www.timmwagener.com <http://www.timmwagener.com>*

Email:
*[email protected] <[email protected]>*

Phone:
*0178-2810920*

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CA%2Bj65io2M5cNkW9zy8ndGQJ5Tkawo3y%2BTLXQevdL1ox_J0OtcA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to