laran
9th December 2009, 08:34
Hi all,
I change my QwtPlot title by:
QwtText text;
text.setFont( QFont("Helvetica", 10, QFont::Bold));
text.setText( "Plot Title");
plot->setTitle( text);
...
text.setText("X");
plot->setAxisTitle( QwtPlot::xBottom, text);
This changes the font in title and axis and I am happy, later in the program I execute:
plot->print( pixmap, filter);
pixmap.save( fileName, "png" );
And the plot is saved correctly, but when I look at my original plot window the title font has changed back to default, while the axis font is still correct.
any ideas?
/Lars
I change my QwtPlot title by:
QwtText text;
text.setFont( QFont("Helvetica", 10, QFont::Bold));
text.setText( "Plot Title");
plot->setTitle( text);
...
text.setText("X");
plot->setAxisTitle( QwtPlot::xBottom, text);
This changes the font in title and axis and I am happy, later in the program I execute:
plot->print( pixmap, filter);
pixmap.save( fileName, "png" );
And the plot is saved correctly, but when I look at my original plot window the title font has changed back to default, while the axis font is still correct.
any ideas?
/Lars