One option might be to add a semitransparent white background - like it is done for tracker text in the spectrogram example.
Otherwise you could try to overload QwtPlotMarker::drawLabel somehow like this:
virtual void YourMarker
::drawLabel( QPainter *painter,
const QRectF &canvasRect,
const QPointF &pos
) const {
painter->save();
painter->setPen( Qt::black );
painter->restore();
}
virtual void YourMarker::drawLabel( QPainter *painter, const QRectF &canvasRect, const QPointF &pos ) const
{
painter->save();
painter->setPen( Qt::black );
QwtPlotMarker::drawLabel( painter, canvasRect, pos + QPointF( -1, 1 ) );
painter->restore();
QwtPlotMarker::drawLabel( painter, canvasRect, pos );
}
To copy to clipboard, switch view to plain text mode
Uwe
Bookmarks