Page 1 of 1

Where to do some clean up stuff while file is being closed?

Posted: Tue Jul 22, 2014 9:44 am
by s4eed
I'm developing my own app based on QCad application framework.
I want to close the database connection, clean up some widgets and do some other clean up stuff while a document is being closed in my program. Where should do these kind of works.

Re: Where to do some clean up stuff while file is being clos

Posted: Wed Jul 23, 2014 1:53 pm
by andrew
I've added an appropriate signal to RMdiChildQt.

The signal is emitted just before a document is definitely closed (closeAccepted):
https://github.com/qcad/qcad/commit/f8d ... 7360ce1adc

If you pull the latest master branch, you can update immediately. Otherwise, you'd have to wait for the upcoming 3.6.3 release.