Qt-interest Archive, April 2007
A way to trace segments with Qwt or Qt3 ?
Message 1 in thread
Hello everybody,
I'd like to trace segments on QwtPlot for example (clickable ones would
be the best).
Something like this:
y
^
| -----------
| ----- ----------------
| ------- ---
| -------
| -------------- -------
+---------------------------------------------------------------->x
Is this possible ? How ?
If it's not possible with qwplot, is it with Qt3 ?
Thank you very much
Max
http://maxunger.free.fr
--
[ signature omitted ]
Message 2 in thread
Max UNGER wrote:
> I'd like to trace segments on QwtPlot for example (clickable ones would
> be the best).
Tracing of segments - clickable ... ?
From your picture it looks like that you want to display samples of the type
[x1-x2, y] as vertical lines. If true take the HistogramItem from the Qwt
histogram example and strip it down. Always have in mind, that Qwt offers
various QwtPlotItems, but implementing individual QwtPlotItems is also an
intended way to use Qwt.
Clickable: The Qwt pickers offers different types of selections on the plot
canvas, but it has no concept how to translate these selections into
interactions with the plot items. This code has to be implemented on
application side (f.e look at the Qwt event_filter example ).
Uwe
PS: Better use the Qwt mailing list. I don't read this list carefully.
--
[ signature omitted ]