Re: Draw Text inside a dial
The SpeedoMeter class of the dials example does something similar.
Uwe
Re: Draw Text inside a dial
Quote:
Originally Posted by
Uwe
The SpeedoMeter class of the dials example does something similar.
Uwe
Yes, I looked at the SpeedoMeter class.
Adding
Code:
d_speedo
->setLabel
(QString::number(d_speedo
->value
()) + "km/h");
to the end of void CockpitGrid::changeSpeed() almost solves it,
it is only that the km/h "Label" gets updated only if the main (parent) widget is resized.
Re: Draw Text inside a dial
Just for the record:
QWT Dial, show unit