[Qt-interest] problem with signal/slot
Brian McKinnon
bpmckinnon.qt at gmail.com
Wed Dec 8 21:17:10 CET 2010
1) You can drop arguments when you do a connection. you couldn't flip the
two functions (I think).
2) the 3 arg version of the function uses "this" as the receiver.
On Wed, Dec 8, 2010 at 4:05 PM, 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.
>
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101208/9a0d8992/attachment.html
More information about the Qt-interest-old
mailing list