So, could you please help to do the same thing with QwtPlotMarker? My idea is in using pen with semitransparent color. How i can draw ending line with QwtPlotMarker?
I coded:
pen.
setColor(QColor(150,
150,
150,
127));
QwtPlotMarker *marker = new QwtPlotMarker();
QPen pen;
pen.setColor(QColor(150, 150, 150, 127));
marker->setLineStyle(QwtPlotMarker::HLine);
To copy to clipboard, switch view to plain text mode
So, now, if i'd want to draw infinite filling area, i could calculate pen width and use
pen.setWidthF(width);
marker->setLinePen(pen);
setYValue(y);
pen.setWidthF(width);
marker->setLinePen(pen);
setYValue(y);
To copy to clipboard, switch view to plain text mode
and what about ending line? help please
Bookmarks