
Originally Posted by
mjfj
Or am I looking in the wrong direction and should I do this differently?
You should be looking in the direction of the QwtScaleDraw class.
{
public:
DegreeScaleDraw();
QwtText label
(double radians
) const {
return QString("%1").
arg(radians
* (180.0 / PI
),
0,
'f',
2) }
};
class DegreeScaleDraw : public QwtScaleDraw
{
public:
DegreeScaleDraw();
QwtText label(double radians) const
{
return QString("%1").arg(radians * (180.0 / PI), 0, 'f', 2)
}
};
To copy to clipboard, switch view to plain text mode
Amos
Bookmarks