diff --git a/src/widgets/kernel/qwidget.cpp b/src/widgets/kernel/qwidget.cpp index 83e38184936..6ece5d03723 100644 --- a/src/widgets/kernel/qwidget.cpp +++ b/src/widgets/kernel/qwidget.cpp @@ -2113,7 +2113,7 @@ void QWidgetPrivate::clipToEffectiveMask(QRegion ®ion) const QPoint offset; #if QT_CONFIG(graphicseffect) - if (graphicsEffect) { + if (graphicsEffect && !w->isWindow()) { w = q->parentWidget(); offset -= data.crect.topLeft(); }