summaryrefslogtreecommitdiffstats
path: root/examples/widgets/tools/plugandpaint/app
diff options
context:
space:
mode:
Diffstat (limited to 'examples/widgets/tools/plugandpaint/app')
-rw-r--r--examples/widgets/tools/plugandpaint/app/paintarea.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/widgets/tools/plugandpaint/app/paintarea.cpp b/examples/widgets/tools/plugandpaint/app/paintarea.cpp
index 4295e04cc0..e225d78398 100644
--- a/examples/widgets/tools/plugandpaint/app/paintarea.cpp
+++ b/examples/widgets/tools/plugandpaint/app/paintarea.cpp
@@ -59,7 +59,7 @@ PaintArea::PaintArea(QWidget *parent) :
QWidget(parent)
{
setAttribute(Qt::WA_StaticContents);
- setAttribute(Qt::WA_NoBackground);
+ setAttribute(Qt::WA_OpaquePaintEvent);
theImage.fill(qRgb(255, 255, 255));
}