I' m using Qwt 6.0.1 undex Linux. Here's code example:
Qt Code:
  1. QwtPlotIntervalCurve *curve = new QwtPlotIntervalCurve("Test interval curve");
  2.  
  3. QVector<QwtIntervalSample> samples;
  4. QwtIntervalSample *sample;
  5. sample = new QwtIntervalSample(DBL_MIN, 300, 700);
  6. samples.push_back(*sample);
  7. sample = new QwtIntervalSample(DBL_MAX, 300, 700);
  8. samples.push_back(*sample);
  9.  
  10. curve->setSamples(samples);
  11. curve->setStyle(QwtPlotIntervalCurve::Tube);
  12.  
  13. curve->attach(ui->plot);
  14.  
  15. ui->plot->replot();
To copy to clipboard, switch view to plain text mode 

After running i saw this:
plot1.png

and after i made right-click (i have default QwtPlotZoomer) i saw this:
plot2.png

So, how i can set infinite interval curve, Uwe?