<!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 not an expert with PerlQt but I am an expert with Qt C++.<BR>
These are the problems I found with your code and I have attached the fixed version.<BR>
<BR>
1) PushButtons do not have a slot for setText. You cannont connect an event to that as a slot.<BR>
2) Slots must take only arguments given by the signal. You tried to give it a contant that was not in the signal.<BR>
3) Slots can only exist in an object not linear code like you tired to do.<BR>
<BR>
To fix this I changed your linear code to an object. Connected the signal event to a actual slot and made the slot change the text like you tried.<BR>
<BR>
I hope this helps to explain why your code did not work and my fix does.<BR>
<BR>
On Sun, 2005-07-03 at 12:41 +0200, Andrea Benazzo wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">Hi! </FONT>

<FONT COLOR="#000000">I need some help with the signal-slot machine... </FONT>

<FONT COLOR="#000000">I created this little script, but I've a problem with the correctness of the </FONT>
<FONT COLOR="#000000">&quot;connect&quot;. </FONT>


<FONT COLOR="#000000">please, tell me where's the error, since I've lsot a couple of hours till </FONT>
<FONT COLOR="#000000">now, but I found nothing, </FONT>

<FONT COLOR="#000000">I attach the script. </FONT>

<FONT COLOR="#000000">Thank you, </FONT>

<FONT COLOR="#000000">Andy</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">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>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>