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:

Qt Code:
  1. virtual void YourMarker::drawLabel( QPainter *painter, const QRectF &canvasRect, const QPointF &pos ) const
  2. {
  3. painter->save();
  4. painter->setPen( Qt::black );
  5. QwtPlotMarker::drawLabel( painter, canvasRect, pos + QPointF( -1, 1 ) );
  6. painter->restore();
  7.  
  8. QwtPlotMarker::drawLabel( painter, canvasRect, pos );
  9. }
To copy to clipboard, switch view to plain text mode 
Uwe