<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.2.5">
</HEAD>
<BODY>
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.<BR>
<BR>
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.<BR>
<BR>
On Tue, 2006-03-21 at 17:21 +0100, Marius Kjeldahl wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">In my application I need to capture close events for a QWidget derived widget. </FONT>
<FONT COLOR="#000000">I've attempted to override &quot;close&quot; and &quot;closeEvent&quot;, and they get called but </FONT>
<FONT COLOR="#000000">carry no information about the &quot;this&quot; pointer. This means I am not able to </FONT>
<FONT COLOR="#000000">access attributes in my widget instance from within close/closeEvents.</FONT>

<FONT COLOR="#000000">Does anybody have any ideas why this isn't working, or an alternative method of </FONT>
<FONT COLOR="#000000">capturing the close events? Keep in mind that the close event is typically </FONT>
<FONT COLOR="#000000">triggered from the window system, so I can not capture it elsewhere I think.</FONT>

<FONT COLOR="#000000">Thanks,</FONT>

<FONT COLOR="#000000">Marius Kjeldahl</FONT>
<FONT COLOR="#000000">(running perl-qt on linux/x86)</FONT>
<FONT COLOR="#000000">_______________________________________________</FONT>
<FONT COLOR="#000000">Kde-perl mailing list</FONT>
<FONT COLOR="#000000"><A HREF="mailto:Kde-perl@kde.org">Kde-perl@kde.org</A></FONT>
<FONT COLOR="#000000"><A HREF="https://mail.kde.org/mailman/listinfo/kde-perl">https://mail.kde.org/mailman/listinfo/kde-perl</A></FONT>
</PRE>
</BLOCKQUOTE>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<U><A HREF="mailto:roy@SiliconTao.com">Royce Souther</A></U><BR>
<U><A HREF="http://www.SiliconTao.com">www.SiliconTao.com</A></U><BR>
Let Open Source help your business move beyond.<BR>
<BR>
For security this message is digitally authenticated by <U><A HREF="http://www.gnupg.org">GnuPG</A></U>.
</TD>
</TR>
</TABLE>
<BR>
<BR>
<BR>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>