Closure of the app

Hello, sirs.

I have created an extension, which creates engines temporarily. What I want is to
remove these custom engines before application closes. But the signal
QApplication::aboutToQuit() is not being fired, when I close the avogadro.
Is there any other ways to catch the closure of application?

Thanks,
Sk.

QApplication::aboutToQuit() is not being fired, when I close the avogadro.
Is there any other ways to catch the closure of application?

I think you should generally look for close event. I seem to remember you’re fairly limited in the aboutToQuit event with what you can do.

Best regards,
-Geoff