diff --git a/tests/manual/embeddedwindows/main.cpp b/tests/manual/embeddedwindows/main.cpp index 98f40e358c..904839cfa3 100644 --- a/tests/manual/embeddedwindows/main.cpp +++ b/tests/manual/embeddedwindows/main.cpp @@ -33,6 +33,8 @@ protected: { QPainter painter(this); painter.setCompositionMode(QPainter::CompositionMode_Source); + if (!mask().isNull()) + painter.setClipRegion(mask()); painter.fillRect(QRect(0, 0, width(), height()), m_pressed ? QGradient(QGradient::JuicyPeach) : m_brush); }