Hi everyone,
I am writing a control system simulation. A QwtSlider (the right one in the picture) is used to indicate a desired value while the left one follows its position using control system theory. Now I would like to have the QwtPlot draw the curve that the slider makes - basically use the slider as a seismometer needle. This works pretty well as you can see, but I still have one problem: I would like to align the slider and the plot so that the scales are the same. As you can see on the picture the Slider and the Plot both show the same value but there is a significal offset due to different sizes of the scales on the screen. Now I'm looking for a way to align the slider and the plot to have scales of exactly same size and same vertical origin so that they represent their values at the same vertical coordinates on the screen. Here's the pic:
Bookmarks