[Qt-interest] Unknown signal sender

Gopalakrishna Bhat gopalakbhat at gmail.com
Thu Sep 1 15:11:44 CEST 2011


No the example in the documentation is not wrong. In cases where we want to
emit another signal on receiving a signal(cascading of signals) we use this
syntax. i.e when you get a mapped() signal clicked() signal is also emitted.

In your case you connected to mapped() signal. If you had connected to the
clicked() signal then also it would have worked.

On Thu, Sep 1, 2011 at 6:08 PM, <Lucas.Betschart at crypto.ch> wrote:

> **
>  Thanks, that worked.
>
> Btw, I think the documentation example from QSignaleMapper is wrong.
>
>
>      connect(signalMapper, SIGNAL(mapped(const QString &)),
>              this, SIGNAL(clicked(const QString &)));
>
>
> Shouldnt this be SLOT at the second line?
>
>
>      connect(signalMapper, SIGNAL(mapped(const QString &)),
>              this, SLOT(clicked(const QString &)));
>
>
>
> Atleast thats the way it worked for me.
>



-- 
My blog http://gkbhat.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110901/bf911f6e/attachment.html 


More information about the Qt-interest-old mailing list