Adding style inside QwtDial
Hi, I'm working in a circular diagram using qwt dials. The diagram is much like a clock (three needles pointing different angles). Is it possible to draw one or two internal circles inside the scale? I need them for reference, since the length of the needle indicates an important value in my GUI.
I used the qwtClockDial code and adapted it to my needs, but I haven't found the way to do what I asked above.
I don't have much experience working with qwt so if anyone could give me a hint, it would be appreciated.
Thanks!
Claudia
Re: Adding style inside QwtDial
Quote:
Originally Posted by
claudiacrb
Hi, I'm working in a circular diagram using qwt dials. The diagram is much like a clock (three needles pointing different angles). Is it possible to draw one or two internal circles inside the scale?
Overload one of the following:
- virtual void QwtDial::drawContents (QPainter *) const
- virtual void QwtDial::drawScaleContents (QPainter *painter, const QPointF ¢er, double radius) const
Check the dials example,
Uwe
Re: Adding style inside QwtDial
Quote:
Originally Posted by
Uwe
Overload one of the following:
- virtual void QwtDial::drawContents (QPainter *) const
- virtual void QwtDial::drawScaleContents (QPainter *painter, const QPointF ¢er, double radius) const
Check the dials example,
Uwe
I don't find example. Can you give me link???
Re: Adding style inside QwtDial
Surprisingly the dials example can be found in the directory: examples/dials.