how to use queryClose()?
Werner Modenbach
modenbach at alc.de
Tue Nov 26 15:34:27 GMT 2002
WARNING: Unsanitized content follows.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Am Dienstag, 26. November 2002 15:12 schrieben Sie / On Dienstag, 26. November
2002 15:12 you wrote:
> how can I use queryClose() or queryExit()?, Ineed to save some data before
> close my Mainwindow application, and I don't know how to use this commands.
> I have Kdevelop 2.0, KDE 2.2-11 and RedHat 7.2.
>
This has nothing to do with kdevelop. It is QT stuff.
Anyway:
queryExit is an event.
In your App class define a method like:
bool MyappApp::queryExit() {
int exit=QMessageBox::information(this, tr("Quit..."),
tr("Do your really want to quit?"),
QMessageBox::Ok, QMessageBox::Cancel);
if (exit==1) { }
else { };
return (exit==1);
}
That's it.
- - Werner -
- --
- ------------------------------------------------------------------------------------
Werner Modenbach
ALC Computertechnik GmbH
Kaiserstr. 100
D-52134 Herzogenrath
http://www.alc.de
- ------------------------------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE945SDLvDE46ZpX7ARAjWlAJ40zxNf2XwOeP2f+SHmfdZgE4luXQCdEoUJ
5mTG7D8trjx2BA2usD36Kno=
=8zsq
-----END PGP SIGNATURE-----
-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«
More information about the KDevelop
mailing list