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:
connect(verticalScrollBar(), SIGNAL(valueChanged(int)),
this, SLOT(scrollV(int)));
...
ZoomView::ZoomView(QGraphicsScene *scene, QGraphicsSimpleTextItem *txt) : QGraphicsView(scene){
connect(verticalScrollBar(), SIGNAL(valueChanged(int)),
this, SLOT(scrollV(int)));
...
To copy to clipboard, switch view to plain text mode
Anyone know what it might be?
Bookmarks