Hi,
I am rendering a QwtPlot on a pixmap using QwtPlotRenderer and a painter with painter.scale(8,8).
The whole plot is scaled correctly including the line on the plot and the legend text, but the legend line/icon is not scaled up.
The QwtPlotCurve pen is set to a width of 3.
const int scale = 8;
QPixmap pixmap
(width
*scale, height
*scale
);
painter.scale(scale,scale);
QRect rect
(0,
0,width,height
);
QwtPlotRenderer rend;
rend.render(plot, &painter, rect);
pixmap.save("pixmap.png");
const int scale = 8;
QPixmap pixmap(width*scale, height*scale);
QPainter painter(&pixmap);
painter.scale(scale,scale);
QRect rect(0,0,width,height);
QwtPlotRenderer rend;
rend.render(plot, &painter, rect);
pixmap.save("pixmap.png");
To copy to clipboard, switch view to plain text mode
I am using Qwt-6.1.0.
/Claus
Bookmarks