You can assign a brush with an image to the palette of the canvas, but better implement a small plot item for your background text:
{
public:
Watermark()
{
setZ(0.0);
}
virtual int rtti() const
{
}
{
}
};
class Watermark: public QwtPlotItem
{
public:
Watermark()
{
setZ(0.0);
}
virtual int rtti() const
{
return QwtPlotItem::Rtti_PlotUserItem + 123;
}
virtual void draw(QPainter *painter,
const QwtScaleMap &, const QwtScaleMap &,
const QRect &rect) const
{
QwtPainter::fillRect(painter, rect, ...);
QwtPainter::drawText(painter, rect, ...);
}
};
To copy to clipboard, switch view to plain text mode
Uwe
Bookmarks