I am studying this sample to understand qwt library class structure and I am using "Friedberg" sample as a starting point.

Question #1: Ticks

I understand MajorTicks as ones for which the label is drawn. I did not find the way to provide labels for MinorTicks and MediumTicks.
Is that correct?

Please let me know if it is possible to provide labels for Minor/Medium types of ticks.
The only method I found was protected member
const QwtText& QwtScaleDraw::tickLabel (const QFont & font, double value )const;

Overriding it in YearScaleDraw did not produce the label for the minor or medium ticks.


Question #2:
I change YearScaleDraw() constructor to assign values 4, 8, 24 for Minor, Medium and Major ticks respectively.

When FriedBerg sample starts it is show like this:
s1.jpg

Then I do zoom and, after zooming, it looks like this:
s2.jpg

Then I zoom back (right-mouse click) and it goes back to the original view as shown below, except that the X-scale is drawn differently compared to the first screenshot.
s3.jpg

Why is that?