Quote Originally Posted by Uwe View Post
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.

Qt Code:
  1. void PlotTextLabel::draw( QPainter *painter,
  2. const QwtScaleMap &xMap, const QwtScaleMap &yMap,
  3. const QRectF &canvasRect ) const
  4. {
  5. qDebug() << __FUNCTION__ << painter->paintEngine()->type() << painter->transform().isScaling();
  6. QwtPlotTextLabel::draw(painter, xMap, yMap, canvasRect);
  7. }
To copy to clipboard, switch view to plain text mode