PDA

View Full Version : custom curves including text



cradle
17th November 2011, 09:33
Hey ho,

I am trying to build a Waveformgenerator with QWT so I need curves for the 1bit signals and curves for the multibit signals. In other Waveformgenerators the multibit signals looks like you can see in the attachment.
A naive idea would be deriving from QwtPlotCurve. The new class would include 2 QwtPlotCurves and a method to print text on the canvas (is this possible?).

Maybe anyone knows a cool way to implement curves like this? How do I print text to canvas?

Thanks!

cradle
28th November 2011, 15:08
No ideas?

Is it a good idea to use QWT for a waveform viewer? Or does anyone knows a better library for this?

Uwe
29th November 2011, 07:45
Is it a good idea to use QWT for a waveform viewer?
Sure, but there is not enough information in your request to tell you how to proceed. Your options are to combine and manipulate one of the existing plot items or to implement your own.

Uwe