[Qt-interest] signal and slot
Malyushytsky, Alex
alex at wai.com
Tue Mar 2 03:29:11 CET 2010
I would highly recommend you to try to describing your questions clearly.
I am not a good writer myself - English is not my first language either,
but if people don't understand you they can't help.
I guess you want 1 slot executed as a reaction on the specific signal,
and second slot to be called after.
If yes, you connect mentioned signal with 1st slot, so this lot is called when signal is received.
Now you have a choice:
a) you can simply call second slot as an ordinary function at the end of the 1st slot ( you need to have an access to the pointer ).
b) or in the class 1st slot belongs to, you add the signal, which you emit at the same place you would call the second slot in case a.
In addition you need to connect that signal to second slot.
Hope this helps.
Alex
From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of yanqzhi at gmail.com
Sent: Monday, March 01, 2010 5:42 PM
To: Yong Zhang; qt-interest at trolltech.com
Subject: Re: [Qt-interest] signal and slot
But the other function will call the first slot,and in this case the second slot will not be called.
yanqzhi at gmail.com
2010-03-02
======= 2010-03-02 09:20 Yong Zhang 您在来信中写到: Re: [Qt-interest] signal and slot=======
You could send out a user-defined signal inside the first slot and
create a connection between this signal and the second slot.
Thanks,
Yong
On 3/1/2010 5:14 PM, yanqzhi at gmail.com wrote:
> hi all,
>
> There are two signals in a application. I want that The second signal is
> emitted until the slot was executed corresponding the first signal .
> The signals and slots are not in the same class.
> How can I do?
>
> Thanks a lot.
>
> Sincerely yours
>
> yanqzhi at gmail.com
> 2010-03-01
>
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
.
= = = = = = = = = = = = = = = = = = = =
---------------------------------------------------------------------------------------------------
Weidlinger Associates, Inc. made the following annotations.
“This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you.”
“Please consider our environment before printing this email.”
More information about the Qt-interest-old
mailing list