[Qt-interest] problem with signal/slot
Mahendra G.R
mahendra at mahendragr.com
Wed Dec 8 17:35:03 CET 2010
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 :
class CustomScene : public QGraphicsScene
{
Q_OBJECT
public:
CustomScene()
{
alphaSlider = new QSlider(Qt::Horizontal);
alphaSlider->setTickInterval(1);
alphaSlider->setRange(0,255);
alphaSlider->setMinimumSize(105,20);
alphaSlider->move(6,222);
alphaSlider->setToolTip("Opacity");
connect( alphaSlider, SIGNAL(valueChanged(int)),
SLOT(updateAlphaValue()) );
//some other stuff
}
public slots :
void updateAlphaValue();
};
--
http://www.mahendragr.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101208/fdf1e14e/attachment.html
More information about the Qt-interest-old
mailing list