Results 1 to 3 of 3

Thread: Problem with QwtPlotIntervalCurve

  1. #1

    Talking Problem with QwtPlotIntervalCurve

    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?

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,313
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Problem with QwtPlotIntervalCurve

    Sound like you want to use Qwt 6.1 and QwtPlotZoneItem. If you can't use 6.1 it should be easy to copy the implementation of QwtPlotZoneItem and port it back to 6.0

    Uwe

  3. #3

    Default Re: Problem with QwtPlotIntervalCurve

    Omg, so may problems with this DBL_MIN/DBL_MAX values
    Uwe, could you tell me why QwtPlotIntervalPicker doesn' t support it?

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.