Thanks Uwe.
 now using:
	
	- { 
-     return QRectF(-  xs. lowerBound()- , ys. lowerBound()- , xs. range()- , ys. range() )- ; 
 
- } 
-   
- void CGraph::setZoomRect(const QRectF& r) 
- { 
-     this -- >setAxisScale (QwtPlot::xBottom- , r. left()- , r. right())- ; 
-     this -- >setAxisScale (QwtPlot::yLeft- , r. top()- , r. bottom())- ; 
- } 
        QRectF CGraph::zoomRect()
{
    const QwtScaleDiv &xs = this->axisScaleDiv( QwtPlot::xBottom);
    const QwtScaleDiv &ys = this->axisScaleDiv( QwtPlot::yLeft );
    return QRectF( xs.lowerBound(), ys.lowerBound(), xs.range(), ys.range() );
}
void CGraph::setZoomRect(const QRectF& r)
{
    this->setAxisScale(QwtPlot::xBottom, r.left(), r.right());
    this->setAxisScale(QwtPlot::yLeft, r.top(), r.bottom());
}
To copy to clipboard, switch view to plain text mode 
  
				
			
Bookmarks