View Full Version : How to get a custom QwtPlotCurve?

6th June 2007, 20: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

6th June 2007, 23:11
Looks like you want to implement something like here:

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