[Kde-perl] Capturing close events

Roy Souther roy at silicontao.com
Tue Mar 21 18:08:14 CET 2006


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
> Kde-perl at kde.org
> 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.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kde-perl/attachments/20060321/a1ec75f5/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://mail.kde.org/pipermail/kde-perl/attachments/20060321/a1ec75f5/attachment.pgp 


More information about the Kde-perl mailing list