-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Friday 08 November 2002 01:50, Kaleb Pederson wrote: > I'm using a global QSettings object throughout my application. For some > reason, when the program closes, the destructor on my QSettings object is > not getting called. As it is the destructor that actually writes > everything to disk (in order to cache the data), none of my settings are > getting saved. Can I manually call it? I'm pretty sure that this used to > work on previous PyQt/Qt versions. >
It might be my Java heritage, but I've never trusted destructors... Couldn't you just connect the LastWindowClosed signal to the save method? Why I personally to is to write the settings whenever a main window is closed, from the closeEvent. - -- Boudewijn Rempt | http://www.valdyas.org -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9y1YqdaCcgCmN5d8RAjCnAJ9QWU6pbaARv42n/YUeXCQdXGg/gACgkBvo D/imtv5E0wlLjBI6xW08S0Q= =qVW+ -----END PGP SIGNATURE----- _______________________________________________ PyKDE mailing list [EMAIL PROTECTED] http://mats.gmd.de/mailman/listinfo/pykde