[Qt-interest] QPushButton's clicked signal(signal/slot issue)

Ravi_Kalepalli Ravi_Kalepalli at Satyam.com
Wed Apr 8 11:07:57 CEST 2009


Hi,
Thank you for your quick responses to my query. I will give your suggestions a shot.
regards,
ravi

________________________________________
From: qt-interest-bounces at trolltech.com [qt-interest-bounces at trolltech.com] On Behalf Of R. Reucher [rene.reucher at batcom-it.net]
Sent: Wednesday, April 08, 2009 2:13 PM
To: qt-interest at trolltech.com
Subject: Re: [Qt-interest] QPushButton's clicked signal(signal/slot issue)

On Wed April 8 2009 10:37:20 Ravi_Kalepalli wrote:
> But,according to a post I found on the internet-
> according to Qt documentation, within the SIGNAL() and SLOT() macros only
> function signatures are allowed? I.e. you can only say something like
>
> connect(obj1, SIGNAL(sig(int)), obj2, SLOT(slot(int))),
>
> and you cannot say this:
>
> connect(obj1, SIGNAL(sig(int param)), obj2, SLOT(slot(int param))).
That's correct. Therefore you need to create your own signal and emit it,
including the parameter you want to pass... then you connect() this signal to
a corresponding slot (with the same function signature) and you're all set!

HTH, René
--
René Reucher
rene.reucher at batcom-it.net
http://www.batcom-it.net/

"355/113 -- Not the famous irrational number PI, but an incredible
simulation!"

_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest


DISCLAIMER:
This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated.




More information about the Qt-interest-old mailing list