This is strange.

Are you triggering the closeWindow() slot elsewhere?

Because destroyed() is a signal of QObject so the widget destructor has already finished by then.
There should be no visual resource left at this point.

Cheers,
_