Re: Way to change font size on QwtKnob?
Brought to you by:
rathmann
|
From: Uwe R. <Uwe...@ep...> - 2002-12-14 00:00:50
|
On Friday 13 December 2002 21:12, Sherri Hodgson wrote:
> I need to change the size of the text and the lines for the scale on the
> knob. Is there a method for doing this? Basically, I just need the scale
> to be fairly small/compact.
1) QwtKnob::setFont()
2) You need QwtScaleIf::d_scale. Here you need to change d_medLen,
d_majLen, d_minLen. For both there is no API.
> Also, is there a way to use letters on the scale rather than numbers...such
> as to make a fuel gauge?
Also QwtScaleIf::d_scale. You need to overload QwtScaleDraw::label().
Make QwtScaleIf::d_scale a pointer and invent a setScaleDraw (like in
QwtScale). Next derive your own QwtScale class write your own label().
Uwe
|