[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Slow and steady
From:       Michael Pyne <pynm0001 () comcast ! net>
Date:       2004-03-31 20:11:26
Message-ID: 200403311511.31883.pynm0001 () comcast ! net
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 31 March 2004 13:52, Nathan Toone wrote:
> application by choosing "quit" in the tray icon's context menu.  However,
> when I click on the "X" (close) button in the window itself, it quits the
> application, when all I want to do is hide the window.  How do I go about
> overriding this?

You need to subclass your application window, and override the closeEvent() 
method.  Have it hide the window, and then fail the close.  I think that 
works.

Don't forget, the entire source of KDE is available to you to see how other 
devs have solved their problems.  http://webcvs.kde.org/

Also, the Qt documentation is there for a reason.  In Konqueror, all you have 
to do is type qt:className to look up information on className in the Qt 
documentation.

Regards,
 - Michael Pyne
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFAayXyqjQYp5Omm0oRAkFcAKCSy7kZy9T0nyiLO3k4znviliTvIgCdEZrw
He1Ri7iImd8jk/N3XkLBT5o=
=OzAV
-----END PGP SIGNATURE-----
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic