<!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.2">
</HEAD>
<BODY>
I am trying to trap the close even but cannot get the syntax for the slot declaration.<BR>
<BR>
use Qt::slots<BR>
&nbsp;&nbsp;&nbsp; closeEvent =&gt; [ Qt::Event ];<BR>
<BR>
That is wrong but I don't know what it should be.&nbsp; I tried [ QEvent ] and a few other combinations.<BR>
<BR>
When I get that working. What should the slot look like? Can I just use shift?<BR>
<BR>
sub closeEvent<BR>
{<BR>
&nbsp;&nbsp;&nbsp; $QEventPointer = shift;<BR>
<BR>
&nbsp;&nbsp;&nbsp; if ( User has not selected an option yet )<BR>
&nbsp;&nbsp;&nbsp; {<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $QEventPointer-&gt;ignore();<BR>
&nbsp;&nbsp;&nbsp; }<BR>
}<BR>
<BR>
<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">Roy 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>
<BR>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>