void YourPlotCurve
::drawSeries( QPainter *painter,
const QRectF &canvasRect,
int from,
int to
) const {
drawTextLabels( painter, xMap, yMap, canvasRect, from, to );
}
const QRectF &canvasRect,
int from,
int to
) const {
// maybe have a look at the implementation of QwtPlotCurve::drawSymbols
...
}
void YourPlotCurve::drawSeries( QPainter *painter,
const QwtScaleMap &xMap, const QwtScaleMap &yMap,
const QRectF &canvasRect, int from, int to ) const
{
QwtPlotCurve::drawSeries( painter, ... );
drawTextLabels( painter, xMap, yMap, canvasRect, from, to );
}
void YourPlotCurve::drawTextLabels( QPainter *painter, const QwtSymbol &symbol,
const QwtScaleMap &xMap, const QwtScaleMap &yMap,
const QRectF &canvasRect, int from, int to ) const
{
// maybe have a look at the implementation of QwtPlotCurve::drawSymbols
...
}
To copy to clipboard, switch view to plain text mode
Bookmarks