Hi all,
How can I attach an image file to QwtPlot as if it's a QwtPlotCurve so that I'll get to use the axis, legend, selection, zoom, etc ...
It seems that subclassing the QwtPlotRasterItem may be it, but I don't know how to override the renderImage method.
const QwtScaleMap &yMap,
const QwtDoubleRect
&area
) const {
//return QImage(_filename);
}
QImage OverlayImagePlot::renderImage(const QwtScaleMap &xMap,
const QwtScaleMap &yMap, const QwtDoubleRect &area) const
{
//return QImage(_filename);
}
To copy to clipboard, switch view to plain text mode
Thanks
Bookmarks