PDA

View Full Version : Draw Line



aloysiusjegan
9th February 2009, 05:53
Hi,

I am new to QWT. Can anyone send me a sample code, how to draw a line using QWT?

Thanks.
AJ.

wysota
9th February 2009, 08:52
What kind of line do you mean? You mean a plot (a curve)?

aloysiusjegan
9th February 2009, 09:04
Hi,

Please see the attached image. I wanted to draw a line between A and B as shown in the image.


Regards
AJ.

Uwe
10th February 2009, 08:31
If you are using a Qwt package from one of the common Linux distributions you probably don't have the Qwt examples.

Download the official Qwt tarball, where you should find enough example code.

Uwe

aloysiusjegan
12th February 2009, 11:02
Thanks for the reply.

I got the idea from examples.

But in my actual requirement, I need to zoom in/out the graph along with the line what I draw.

The zoom in/out is working fine with plot curve and other plots. It is not zoom in/out the line drawn using 'drawLine' function.

How to do it?

Thanks.

-AJ.