I would derive from QwtScaleDraw and overload one of its virtual methods, adding the QPainter::drawText() call you need. F.e:
{
...
protected:
virtiual
void drawBackbone
( QPainter *painter
) const {
// now calculate the position/alignment/rotation for your text and
// do the painter->:drawText() call
...
}
};
class YourRadiusScaleDraw: public QwtScaleDraw
{
...
protected:
virtiual void drawBackbone( QPainter *painter ) const
{
QwtScaleDraw::drawBackbone( painter );
// now calculate the position/alignment/rotation for your text and
// do the painter->:drawText() call
...
}
};
To copy to clipboard, switch view to plain text mode
HTH, Uwe
Bookmarks