
Originally Posted by
Uwe
Come on: drawing to a QImage should also be done without using the cache for a painter with scaling ( see the code you have posted ! ) and all your code should be obsolete.
How can you tell if the QPainter is scaling when QPainter::transform().isScaling() always return false.
void PlotTextLabel
::draw( QPainter *painter,
const QRectF &canvasRect
) const {
qDebug() << __FUNCTION__ << painter->paintEngine()->type() << painter->transform().isScaling();
QwtPlotTextLabel::draw(painter, xMap, yMap, canvasRect);
}
void PlotTextLabel::draw( QPainter *painter,
const QwtScaleMap &xMap, const QwtScaleMap &yMap,
const QRectF &canvasRect ) const
{
qDebug() << __FUNCTION__ << painter->paintEngine()->type() << painter->transform().isScaling();
QwtPlotTextLabel::draw(painter, xMap, yMap, canvasRect);
}
To copy to clipboard, switch view to plain text mode
Bookmarks