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.
Where to do some clean up stuff while file is being closed?
Moderator: andrew
Forum rules
Always indicate your operating system and QCAD version.
Attach drawing files, scripts and screenshots.
Post one question per topic.
Always indicate your operating system and QCAD version.
Attach drawing files, scripts and screenshots.
Post one question per topic.
Re: Where to do some clean up stuff while file is being clos
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.
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.