PDA

View Full Version : how to obtain a concrete plot curve?



kpr
11th February 2011, 11:47
Hi,

I'm working on a qwt 4 application, porting it to qwt version 5. One of my problems is how to obtain a concrete curve of the plot. In version 4, there was easy using QwtPlot::insertCurve() to insert a curve obtaining a curve identificator and you could use this id to obtain a curve later with function QwtPlot::Curve(curveId).
How can I obtain a concrete curve from my plot in qwt version 5?

Thanks !!

Uwe
11th February 2011, 12:00
I'm working on a qwt 4 application, porting it to qwt version 5.
Then better port it to Qwt 6.


One of my problems is how to obtain a concrete curve of the plot.
You have the plot item ( here the curve ) itself.

You can put it into a QMap if you want work with keys, but the idea is to use the plot items in a similar way as you work with widgets or QGraphicsView items.

Uwe

kpr
14th February 2011, 13:42
Thanks Uwe but sorry i don't understand what you mean. Any short example please?