Re: Capturing close events

Roy Souther <[email protected]> Tue, 21 Mar 2006 10:08:14 -0700
Newsgroups gmane.comp.kde.devel.perl
Organization Silicon Tao Technology Systems Inc.
Message-ID <1142960894.30015.10.camel@UtopiaPlanetia>
If you can post a very small example file that does not work for you I
can try it and see what I have done in the past that has worked. I would
start with one simple file that has a dialog that will not close when
you click the X in the top right. If that works then see how your code
is different. If it does not work then ask why.

I have many programs in C++ using Qt that trap a close event and they
work great but have not tried it in PerlQt yet.

On Tue, 2006-03-21 at 17:21 +0100, Marius Kjeldahl wrote:

> In my application I need to capture close events for a QWidget derived widget. 
> I've attempted to override "close" and "closeEvent", and they get called but 
> carry no information about the "this" pointer. This means I am not able to 
> access attributes in my widget instance from within close/closeEvents.
> 
> Does anybody have any ideas why this isn't working, or an alternative method of 
> capturing the close events? Keep in mind that the close event is typically 
> triggered from the window system, so I can not capture it elsewhere I think.
> 
> Thanks,
> 
> Marius Kjeldahl
> (running perl-qt on linux/x86)
> _______________________________________________
> Kde-perl mailing list
> [email protected]
> https://mail.kde.org/mailman/listinfo/kde-perl


Royce Souther
www.SiliconTao.com
Let Open Source help your business move beyond.

For security this message is digitally authenticated by GnuPG.

_______________________________________________
Kde-perl mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kde-perl
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQBEIDL+Y62fql08qicRAgSqAJ4mWCoU3+ezlEtIqYMsOsVhE7VjdACfdoaE
Ccr4d8Qq55UGa54KHd+TeyU=
=HOkK
-----END PGP SIGNATURE-----