I have a QWidget that has a very cpu intensive paint event handler. But it hardly needs updating, although it is moved on screen. I know how to implement a double buffer paint mechanism, but as all QWidgets already have a double buffering system, I was curious to see if it is possible to use it on purpose, something like this:
void ParametersWidget::paintEvent(QPaintEvent *)
{
if(isnt_changed) {
bypassUpdate();
}
else {
drawStuff();
}
}
Any help would be appreciated.