You might also try experimenting with QWidget::setAutoFillBackground(true/false)