PDA

View Full Version : How to get a custom QwtPlotCurve?



luffy27
6th June 2007, 21:39
I am using Qwt 5.0.1 and Qt 3.3.5. I want to subclass my own PlotCurve from QwtPlotCurve.
The derived PlotCurve may looks like a circle with a filled color. I give it left, right, top, bottom and center point data(or only a radius and a center point data) and also a specified filled color. The PlotCurve should be shown as a filled circle based on these data by .

Could someone tell me the basic method to do it ? Some code examples will be better.

Thanks a lot.
Best regards

Uwe
7th June 2007, 00:11
Looks like you want to implement something like here:
http://qwt.svn.sourceforge.net/viewvc/qwt/trunk/qwt/examples/navigation/plot.cpp?view=markup

Better derive directly from QwtPlotItem, if you don't want to implement a curve.

Uwe