Re: Strange behaviour in QwtPlot::print()
Brought to you by:
rathmann
From: Uwe R. <Uwe...@ti...> - 2007-10-24 17:09:24
|
Hi Dennis, Sorry for the delay - this problem got somehow lost from my TODO list. > If I export the plot normally to pdf, the backbone and the ticks of the > axes are printed in light gray. I isolated the problem to a small demo and sent it to the TrollTech support. See: http://trolltech.com/developer/task-tracker/index_html?id=184671&method=entry. As workaround you can do the following: virtual void YourPlot::print(QPainter *painter, const QRect &rect, const QwtPlotPrintFilter &printFilter) const { const QPen pen = painter->pen(); painter->setPen(QPen(Qt::black, 1)); painter->setPen(pen); QwtPlot::print(painter, rect, printFilter); } I have added a similar workaround to SVN, Uwe |