Better try to understand, what the maps are about !
plotImage.
fill(QColor(Qt
::white));
xMap.setPaintInterval(0, plotSize.width());
xMap.setScaleInterval(...);
yMap.setPaintInterval(plotSize.height(), 0); // inverted !!!
yMap.setScaleInterval(...);
plotSpectogram.
draw(&painter, xMap, yMap,
QRect(QPoint(0,
0), plotSize
));
QPixmap plotImage = QPixmap(plotSize);
plotImage.fill(QColor(Qt::white));
QPainter painter(&plotImage);
QwtScaleMap xMap;
xMap.setPaintInterval(0, plotSize.width());
xMap.setScaleInterval(...);
QwtScaleMap yMap;
yMap.setPaintInterval(plotSize.height(), 0); // inverted !!!
yMap.setScaleInterval(...);
plotSpectogram.draw(&painter, xMap, yMap, QRect(QPoint(0, 0), plotSize));
To copy to clipboard, switch view to plain text mode
Uwe
Bookmarks