From kde-core-devel Wed Feb 11 21:23:07 2009 From: Ingo =?iso-8859-15?q?Kl=F6cker?= Date: Wed, 11 Feb 2009 21:23:07 +0000 To: kde-core-devel Subject: Re: Needing a QEventLoop for a kioslave Message-Id: <200902112223.08107 () thufir ! ingo-kloecker ! de> X-MARC-Message: https://marc.info/?l=kde-core-devel&m=123438745125965 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--nextPart1682598.hOmyjpiaUU" --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--