hello,
Background :
I have Plot a Histogram on QwtPlot using QwtPlotHistogram. then I have been able to magnify the plot in right direction only. Now as I magnify the plot I need A ScrollBar to view the zoomed data. for this I added a QScrollBar.
I am trying to attach a QScrollBar to My QwtPlot .

But I can't connect the QScrollBAr to QwtPlot.

the code which I am trying is : (this is in MyPlot 's constructor)

QScrollBar *hScrollBar = new QScrollBar(Qt::Horizontal,plot->canvas());
connect(hScrollBar,SIGNAL(sliderMoved(double)),thi s->canvas(),SLOT(horizontal_scroll(double)));

horizontal_scroll is my method as :

void MyPlot:: horizontal_scroll(double value)
{
setAxisScale(2, value, value + 105.0);
//plot->setAxisScale(0,50,20);
replot();
}

I am not getting where I am going wrong....!!

Thanx in advance...!