PDA

View Full Version : problem with signal/slot



ihoss
24th August 2007, 22:30
All I want is to connect a slot to a signal, but I keep getting an error:

zoomView.cpp:13: error: no matching function for call to `ZoomView::connect(QScrollBar*, const char[19], ZoomView* const, const char[14])'

Here is the code:


ZoomView::ZoomView(QGraphicsScene *scene, QGraphicsSimpleTextItem *txt) : QGraphicsView(scene){
connect(verticalScrollBar(), SIGNAL(valueChanged(int)),
this, SLOT(scrollV(int)));
...


Anyone know what it might be?

jpn
24th August 2007, 22:53
Perhaps a missing #include <QScrollBar>?

ihoss
24th August 2007, 22:59
Godd thing I posted in the n00b forum :p