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

Discussion forum for contributors and developers who are using the QCAD version 3 ECMAScript development platform or the C++ plugin interface or who are otherwise looking to contribute to QCAD (translations, documentation, etc).

Moderator: andrew

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

Postby s4eed » Tue Jul 22, 2014 9:44 am

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.
s4eed
Junior Member
 
Posts: 18
Joined: Fri Sep 27, 2013 3:23 pm

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

Postby andrew » Wed Jul 23, 2014 1:53 pm

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.
User avatar
andrew
Site Admin
 
Posts: 2592
Joined: Fri Mar 30, 2007 6:07 am


Return to QCAD 3 Developers and Contributors

Who is online

Users browsing this forum: No registered users and 2 guests