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

Discussion forum for C++ and script developers who are using the QCAD development platform or who are looking to contribute to QCAD (translations, documentation, etc).

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files, scripts and screenshots.

Post one question per topic.

Post Reply
s4eed
Junior Member
Posts: 18
Joined: Fri Sep 27, 2013 3:23 pm

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

Post by 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.

User avatar
andrew
Site Admin
Posts: 9036
Joined: Fri Mar 30, 2007 6:07 am

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

Post by 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.

Post Reply

Return to “QCAD Programming, Script Programming and Contributing”