Thanks for quick reply. The code below works
{
public:
{
}
virtual void renderSymbols
( QPainter *painter,
const QPointF *point,
int numPoints
) const {
double symbolWidth = this->size().width();
painter->save();
painter->translate(symbolWidth*0.5,0.0);
QwtSymbol::renderSymbols(painter,point,numPoints
);
painter->restore();
}
};
class TrianglePen: public QwtSymbol
{
public:
TrianglePen(QColor symbolColor, QSize symbolSize) : QwtSymbol(QwtSymbol::LTriangle, symbolColor, Qt::NoPen,symbolSize)
{
}
virtual void renderSymbols( QPainter *painter, const QPointF *point, int numPoints ) const
{
double symbolWidth = this->size().width();
painter->save();
painter->translate(symbolWidth*0.5,0.0);
QwtSymbol::renderSymbols(painter,point,numPoints);
painter->restore();
}
};
To copy to clipboard, switch view to plain text mode
Does exactly what I want, very satisfactory.
Best Regards,
Mikhail
Bookmarks