diff --git a/winnativeeventfilter.cpp b/winnativeeventfilter.cpp index f50c36b..c94bb08 100644 --- a/winnativeeventfilter.cpp +++ b/winnativeeventfilter.cpp @@ -2394,7 +2394,7 @@ bool WinNativeEventFilter::setBlurEffectEnabled(void *handle, // it will cover the blurred effect, so we need to // make the background become totally transparent. Achieve // this by setting a palette to the window. - widget->setPalette(enabled ? QPalette(QColor(0, 0, 0, 0)) : QPalette()); + widget->setPalette(enabled ? QPalette(Qt::transparent) : QPalette()); } #endif if (isWin8OrGreater() && coreData()->m_lpSetWindowCompositionAttribute) {