--nextPart1682598.hOmyjpiaUU Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wednesday 11 February 2009, Thiago Macieira wrote: > Ingo Kl=F6cker wrote: > >BTW, the API docs of qAddPostRoutine state that the clean-up > > functions will be called by ~QApplication(). A quick look at the > > code shows that they will also be called by ~QCoreApplication(). > > This should probably be clarified in the API docs. > > It will be called by ~QApplication. Indirectly. > > Remember that ~QApplication calls ~QCoreApplication. > > :-) I think you misunderstood my point. The API docs read: void qAddPostRoutine ( QtCleanUpFunction ptr ) Adds a global routine that will be called from the QApplication destructor. This function is normally used to add cleanup routines for program-wide functionality. [...] After reading this I wondered whether cleanup functions registered with=20 qAddPostRoutine() are also called if my non-GUI application is derived=20 from QCoreApplication, but not from QApplication. I had to look into=20 the source code of ~QCoreApplication() to resolve those doubts. Regards, Ingo --nextPart1682598.hOmyjpiaUU Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEABECAAYFAkmTQbwACgkQGnR+RTDgudhHrgCghcG1ivRRJlCtuC3NHrHJ9WbP 8dYAnieugD4N2MV84bY/8ItsGx26nYH8 =T5+K -----END PGP SIGNATURE----- --nextPart1682598.hOmyjpiaUU--