Timm: This is how my inheritance looks: class App(MayaQWidgetDockableMixin, QDialog):
So I am overriding the closeEvent in that class with my cleanup code, but like mentioned, it's not being called when *docked*. Also: "closeEvent hides the widgets instead of deleting them by default" : That's what I've experienced as well: I *am *using the WA_DeleteOnClose for that class: Without it, it seems the closeEvent isn't called when closed in window form. But in docked mode, nada. Marcus: I have all my windows (to my knowledge) properly parented. But "closing" them doesn't seem to actually delete them (see comment above) without the WA_DeleteOnClose option. So what I need is a way to "delete" my QDialog correctly when it's *docked*. Currently, when docked, when I hit the [x] it just seems to "hide" it. It *appears* that it was deleted (since it vanishes from the scene, but in fact it's still there, just not drawing? -- 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/4829e0e6-0dd0-4a9e-811f-d8669d742535%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
