hi
i have created a customized symbol by subclassing the QwtSymbol class and reimplementing the function,
{
public:
{
//shape of symbol( |___ )
QwtPainter::drawLine(painter, r.
bottomLeft(), r.
topLeft());
QwtPainter::drawLine(painter, r.
bottomLeft(), r.
bottomRight());
}
}
class feather : public QwtSymbol
{
public:
void draw(QPainter *painter, const QRect &r) const
{
//shape of symbol( |___ )
QwtPainter::drawLine(painter, r.bottomLeft(), r.topLeft());
QwtPainter::drawLine(painter, r.bottomLeft(), r.bottomRight());
}
}
To copy to clipboard, switch view to plain text mode
i want to rotate the symbols at some angle. but,i can not use the painter argument for doing this because its co-ordinates are not the co-ordinates of r(argument QRect).
how can i do this
.
Bookmarks