plot->setAutoFillBackground( true );
plot->setPalette( Qt::white );
plot->setCanvasBackground( Qt::white );
QwtPlotCanvas *canvas
= dynamic_cast<QwtPlotCanvas
*>
( plot
->canvas
() );
canvas
->setFrameStyle
( QFrame::NoFrame );
plot->setAutoFillBackground( true );
plot->setPalette( Qt::white );
plot->setCanvasBackground( Qt::white );
QwtPlotCanvas *canvas = dynamic_cast<QwtPlotCanvas *>( plot->canvas() );
canvas->setFrameStyle( QFrame::NoFrame );
To copy to clipboard, switch view to plain text mode
Better don't use style sheets for silly operations like this one. In rare situations they might have a negative impact on the performance ( full repaints instead of partial updates ) - and of course they are conflicting with the concept of palettes.
Uwe
Bookmarks