Any way to disable the whole plot (gray-out)?
As the title suggests, I have a long operation where I read file data from a thread to plot. During this, I disable the UI so the user can't click. However, I'm unable to disable my Qwt plot.
I've tried:
QwtPlot->setEnabled(false);
QwtPlot->canvas()->setEnabled(false);
Neither disable (aka gray-out) the plot area.
Is there a way to disable the plot area?
Thanks )
Re: Any way to disable the whole plot (gray-out)?
"plot->setEnabled( false );" should be fine, but you need to assign a palette to the plot canvas, where the brush is different for QColorGroup::Disabled.
Code:
pal.
setBrush( QPalette::Window, Qt
::blue );
plot->canvas()->setPalette( pal );
Uwe