[Qt-interest] problem with signal/slot

Mandeep Sandhu mandeepsandhu.chd at gmail.com
Thu Dec 9 06:24:16 CET 2010


On Thu, Dec 9, 2010 at 1:35 AM, Anthony Gabrielson
<agabrielson1 at comcast.net> wrote:
> So a few notes:
>    1) Don't the signatures need to be the same?
>    2) Connect looks like its an argument short.

A slot can have lesser number of arguments than the signal it connects
too. The extra args are simply ignored.

-mandeep

>
> Anthony
>
> ----- Original Message -----
> From: "Mahendra G.R" <mahendra at mahendragr.com>
> To: qt-interest at trolltech.com
> Sent: Wednesday, December 8, 2010 11:35:03 AM
> Subject: [Qt-interest] problem with signal/slot
>
> Hi guys,
>
> i have a small problem with signal/slot, though i have defined my slot
> method, i get runtime message saying   Object::connect: No such slot
> CustomScene::updateAlphaValue()  , i have defined the method
> updateAlphaValue() in the customScene class
>
> this is my code :
>
>             connect( alphaSlider, SIGNAL(valueChanged(int)),
> SLOT(updateAlphaValue()) );
>
> --
> http://www.mahendragr.com
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>




More information about the Qt-interest-old mailing list