Customizing QwtPlotCurve and QwtPolarCurve
Hello!
I'ld like to know how one could customize a QwtPlotCurve or a QwtPolarCurve to show something 'beyond' merely a simple curve. Particularly, I'ld like to know how to make QwtPolarCurve displays an arrow as phasor graphs normally do. I thought about reimplementing the virtual "drawCurve" method, but I couldn't do it in a way that would work. Could somebody please lend me a hand on this?
Thanks,
Momergil
Re: Customizing QwtPlotCurve and QwtPolarCurve
Re: Customizing QwtPlotCurve and QwtPolarCurve
Quote:
Originally Posted by
Cah
Maybe you can implement a plot item.
I guess I got your point (I'm not familiar with using plot items this way, so it was difficult to remember of this option :) )
I'll implement such solution and come with a feedback in case something "bad" happens. Thanks!
Momergil
Added after 42 minutes:
Well, I did managed to reimplement draw() and create a custom arrow. The problem now is: how should I connect this item with a QwtPolarCurve, such as when the curve appears, it draws the item at its corner making the arrow figure? Reimplementing drawCurve and draw from QwtPolarCurve is only giving me crashes \o/
Re: Customizing QwtPlotCurve and QwtPolarCurve
Well time have passed and I still haven't found any solution to this problem. Anyone could help?
Re: Customizing QwtPlotCurve and QwtPolarCurve
Quote:
Originally Posted by
Momergil
Hello!
Particularly, I'ld like to know how to make QwtPolarCurve displays an arrow as phasor graphs normally do.
Can you post an example how that looks like?