Hi!
I've got an issue. I'm working with Qwt version 5.2.7. I'm trying to generate a SVG file from my QwtPlot.
At the moment, I'm doing this, simply said with following code:
QSvgGenerator genereator;
generator.setFileName(blabla)
generator.setSize(size)
.... Initializing generator, BUT then...
painter.begin(&generator);
plot->drawCanvas(&painter);
painter.end()
QSvgGenerator genereator;
generator.setFileName(blabla)
generator.setSize(size)
.... Initializing generator, BUT then...
QPainter painter;
painter.begin(&generator);
QwtPlot plot = blblabla;
plot->drawCanvas(&painter);
painter.end()
To copy to clipboard, switch view to plain text mode
This works fine BUT it will only draw the plot it self + the grid bot NO axis... Quiet annoying. If I try to draw the axis apart, by getting the axis from the plot and then QwtScaleDraw::draw(&painter,QApplication:
alette(), my axis will be drawn at top. Then there will be no control...
ANd yes, I know that in Qwt version 6 there is a renderer to pdf, svg, etc but I need to use this version!
Any ideas?
Bookmarks