Hi,

i calculate the max, min values over all attached curves of a plot

Qt Code:
  1. QwtPlotItemList curveList = plot()->itemList( QwtPlotItem::Rtti_PlotCurve );
  2.  
  3. for ( int i = 0; i < curveList.size(); i++ )
  4. {
  5. QwtPlotCurve *curve = static_cast<QwtPlotCurve *>( curveList[i] );
  6.  
  7. d_data->maxLimitX = qMax( d_data->maxLimitX, curve->maxXValue() );
  8. d_data->minLimitX = qMin( d_data->minLimitX, curve->minXValue() );
  9.  
  10. d_data->maxLimitY = qMax( d_data->maxLimitY, curve->maxYValue() );
  11. d_data->minLimitY = qMin( d_data->minLimitY, curve->minYValue() );
  12. }
To copy to clipboard, switch view to plain text mode 

Does QwtPlot provide an integrated function to get the same? I didn't found any.

Thx
Stefan