PDA

View Full Version : Axis with a probability scale



Lister
4th May 2009, 18:21
Hello !
I am working on an application using QwtPlot displaying technical drawings with a probability scale.

There is a way to implemente a probability scale ?

Thanks in advance,

Lister

Uwe
5th May 2009, 06:45
Start with QwtScaleWidget with a range of 0-1. Depending on the orientation of the scale you can align a second widget with the stuff you want to display on the widget. Another option is to resize the scale widget becond the size it needs and to paint into the empty space.

With scaleWidget()->scaleDraw()->map() you can calculate the pixel positions that correspond to scale values.

HTH,
Uwe